Fixed some issues with keyboard movement.