Added quit and minor changes to input manager.