refactored input manager to use SDL input events