du kannst es so machen:

...
if taster_up=off then second=second+1
if taster_down=off then second=second+1
pause 5
...

Dann hättest du pro einheit zwei Taster. Also einen auf und einen ab.