input manager. works for multiple games