Another thing that is wrong is that you're not using a loop to handle the button input. Right now, your code only check the button input once. You need to do this: VAR B WHILE TRUE B=BUTTON() IF B AND #A THEN DO SOMETHING ENDIF IF B AND #B THEN DO OTHER THING ENDIF WEND