Space is jump D is walk right A is walk left
I have fixed this by adding a variable so you jump in the same position. Credit to: @TheRealSap.