WASD/Arrow keys
The way this code works is pretty simple, basically you have a forever loop that is constantly checking to see if you are pressing and of the WASD keys. If you press them it changes your corresponding x/y value, but the reason this works better than the "When key <key> pressed change x/y by <set value>" is because you can move in multiple directions at once, and it makes gameplay a whole lot smoother.