For future reference, it is a good idea to normalize movement vectors so that you don't move faster diagonally.
Let me know if you don't know what I mean :)