Use the arrow keys of WASD to move and to reset you can click space
I was wondering how to make a smooth Platformer and I found out this is the code that is used for most of the generic platformers but it has some bugs like there are some platforms you can go straight through. They will be fixed in the real thing though!