(any variable) = TRUE WHILE (the variable) == TRUE B=BUTTON() IF B==#A THEN (whatever happens if you press A) (variable) = FALSE ENDIF WHILE (variable) == FALSE (button inputs for the rest of the game) WEND