You need another while loop You need two while loops between each message, not just one: WHILE BUTTON() AND #A==0:VSYNC:WEND WHILE BUTTON() AND #A!=0:VSYNC:WEND