User blog comment:Sparkystream/Test Game 2/@comment-5986608-20130924022329/@comment-5986608-20130925210856

@BUTTONLOOP

PUSHEDBUTTON = BUTTON(2) 'CHECKS FOR SINGLE PUSH

IF PUSHEDBUTTON == 1 THEN GOSUB @PUSHEDUP

IF PUSHEDBUTTON == 2 THEN GOSUB @PUSHEDDOWN

WAIT 1 'WAITS FOR BUTTON BUFFER TO CLEAR

IF PUSHEDBUTTON == 0 THEN GOTO @BUTTONLOOP