input manager and input events