Move and jump with the arrow keys. Reach the end of each level to go to the next level.
Look inside the project for comments explaining how this works. I unexpectedly received a lot of views, love-it, and favorites on my previous platformer collision tutorial. I mentioned that I would create another one, so here it is.