Fixed issue with leaking inputManager

Gamepad was trying to access inputManager before it had been
initialized.