Buttons are read by using BUTTON() instruction. BUTTON returns what button is being pressed (aside from START and SELECT). I strongly recommend you three things: 1.- Toying around with the example program 2.- Read the instruction manual (http://smilebasic.com/en/reference/) 3.- Tap the "?" button on the touchscreen when you're writting a command to see more information and examples.