Use space to jump X to reset acceleration Right and left arrow to move
I suggest a collision checks percentage of 25%. This allows smooth and not too glitchy gameplay.