Added attribute "falling" for entities, moved function calls for key logic and player update. key logic first, update last (because one should be able to change the velocity in between key login and the actual update)