Go to logic screen(Pac-man button) and click all of the "add" on the first one, change "always" to "key board", on the key box, place whatever you want.

on the last one click on an arrow and connect each dot to each other. Now press p, keep changing the arrows until you get the correct movement.

Press P and remeber to press the key you put on the "key box"!