Improved key input and physics

Added gravity