First Make a game
Then make your sprites and all that
Then add the event keyboard
when your done with that go to event sheet
Then press add event
Then press keyboard
Then press "on clicked"
Then add a key
Then add action
Then press your sprite
And press restart layout.
AND YOUR DONE!!!!