Use arrow keys to move. There are some glitches, so if you are stuck in jumping mode then just crouch, and if you are stuck in the ground, just jump. Also, comment below if you find any more bugs. Feel free to copy any of my code, even though it is very messy.
Thank you to my classmate Logan that gave me the idea.