I've mentioned this in one of your earlier posts. You need to set an escape within the loop. You can do this by setting a label outside the loop and writing a GOTO to this label within your loop. E.g.: @LOOP IF BUTTON() AND #B THEN GOTO @OUTSIDE GOTO @LOOP @OUTSIDE