JSG,
You need to show some effort on your behalf, posting someone else's graphics and expecting code is a little long winded.
here is some theory
create a variable called direction
1 equals up
2 equals right
3 equals down
4 equals left
direction = 1
then in your key management in your main loop simply apply the key to the direction
if upkey()=1
direction = 1
endif
...
if leftkey()=1
direction = 4
endif
then later in your main loop after the check for keys update the players sprite with the direction
if direction = 4
rem move sprite left however many units.
endif