This screenshot shows code to move a sprite using the X Y A B buttons. Change "AND" in the button() test statements to "==" if you don't want to allow diagonal movement.