Example: WHILE GAME 'MAIN GAME LOOP 'DO GAME STUFF IF BUTTON() AND #Y THEN 'PAUSE WHEN Y IS PRESSED WHILE !(BUTTON() AND #Y):WEND 'SIMPLE LOOP THAT UNPAUSES WHEN PRESSING Y AGAIN ENDIF WEND