BUTTON() doesn't take the button references themselves. Instead, do something like this: HELD=BUTTON() 'RELEASED=BUTTON(3) IF #A AND HELD THEN MSG="A is being held!" ELSE MSG=""