Or you could do IF BUTTON(2)==#A THEN PRINT "A is pressed"