Use the A and D keys to move left and right, and use the space bar to jump.
I have been trying to figure out how to create a gravity engine with only one sprite for 1 1/2 years now. I finally figured it out!