A and D to move left and right. Space to jump
Look inside to understand the code and get it for your own project.