WASD to move, just don't go off screen.
This was my attempt to simulate gravity in a smoother and simpler way than in my first attempts. I think it turned out good. Again, anybody can use this code.