I recommend the syntax of... REPEAT:UNTIL BUTTON() AND #A It is a very simple code snippet that waits until the A button is pressed. If you wish to keep the button's input, you could do something like... REPEAT B=BUTTON() UNTIL B AND (#A OR #B OR #X OR #Y)