Updating onRegistered -> registered
Moving InputManager to samples/common