Test and fix for the InputManager