Try this :) @LOOP IF BUTTON() AND #A THEN END GOTO @LOOP what will happen (if you copy this correctly) the program will end.