Here is your exact code fixed: [https://gist.github.com/treeform/bb3f4618d24535590043e264825f350d](https://gist.github.com/treeform/bb3f4618d24535590043e264825f350d)
I recommend using getKeyboardState() like I did, other wise it moves only on key repeats.
