You can check the resources to see if there are any pages with what you want, or other forum threads on the site.
EDIT: found this sample code in another thread:
@LOOP B=BUTTON(1) IF B AND 1 THEN INC Y,-1 IF B AND 2 THEN INC Y,1 IF B AND 4 THEN INC X,-1 IF B AND 8 THEN INC X,1 CLS LOCATE X,Y PRINT "O" VSYNC 1 GOTO @LOOPIt may seem a bit confusing what each command does but you can look those up in the instruction manual.