protected void Update() { if (HighLogic.LoadedScene == GameScenes.MAINMENU) { bool alt = (Input.GetKey(KeyCode.LeftAlt) || Input.GetKey(KeyCode.RightAlt)); if (alt && Input.GetKeyDown(KeyCode.M)) { guiEnabled = !guiEnabled; } } }