I'd like to have one ways in a grid based movement. Based on the Pacman tutorial I tried this, which almost works:
Example (Release 101)
Moving in the arrow direction works fine and the player even stops, if the direction is not correct. But after this the controls go wacky. What am I missing?