here is an example(you can use #A for the A button and so forth...):
@A
SPSET 0,0
SPOFS X,Y
IF BUTTON() AND #UP THEN Y=Y-1
IF BUTTON() AND #DOWN THEN Y=Y+1
IF BUTTON() AND #LEFT THEN X=X-1
IF BUTTON() AND #RIGHT THEN X=X+1
GOTO @A
If you want to use the circle pad, then use this instead of BUTTON()