Move left and right with A and D. Use Space to jump.
This is the simplest platformer example I could come up with that feels like a platformer. It uses velocities to simulate a sense of mass in the Hero's movement, but I tried to use as few blocks as possible to make it easier to understand.