If I remember correctly, it was: REPEAT VSYNC 1 UNTIL BUTTON(2) AND 16!=FALSE I also tried: IF BUTTON(2)== 16 THEN GOTO@LABEL none of them worked