hast du es schon mal mit dem befehl: DEBOUNCE versucht?

DEBOUNCE

Action
Debounce a port pin connected to a switch.


Syntax
DEBOUNCE Px.y , state , label [ , SUB]


Remarks

Px.y A port pin like PINB.0 , to examine.
State 0 for jumping when PINx.y is low , 1 for jumping when PINx.y is high
Label The label to GOTO when the specified state is detected
SUB The label to GOSUB when the specified state is detected