input manager refactoring
code cleanup