cleaned up inputManager detection between keyboard/mouse and gamepad