For use in your own projects, if you need it. Just copy the code for yourself, but remember to give credit! If you want to change the speed you can adjust it all in the code. WASD or arrow keys to move. Space can be used to jump.
Most of this code was taken from the Scratch wiki and was modified to work better and a bit more realistically. This has been used in the 'David' Prototype.