Fixed a bug with movement keys in main.js