private void OnKeyUp(object sender, KeyEventArgs e) { if (menuScript.curInputType == MenuScript.DesiredInputType.changeKeyBinding) { if (e.KeyCode != Keys.Enter) { ModOptions.instance.SetKey(menuScript.targetKeyBindToChange, e.KeyCode); menuScript.curInputType = MenuScript.DesiredInputType.none; menuScript.RefreshKeyBindings(); } } else { if (e.KeyCode == ModOptions.instance.openGangMenuKey) { //note: numpad keys dont seem to go along well with shift if (e.Modifiers == Keys.None) { menuScript.OpenGangMenu(); } else if (e.Modifiers == Keys.Shift) { menuScript.OpenContextualRegistrationMenu(); } } else if (e.KeyCode == ModOptions.instance.openZoneMenuKey) { if (e.Modifiers == Keys.None) { zoneManagerScript.OutputCurrentZoneInfo(); } else if (e.Modifiers == Keys.Shift) { zoneManagerScript.OutputCurrentZoneInfo(); menuScript.OpenZoneMenu(); } else if (e.Modifiers == Keys.Control) { zoneManagerScript.ChangeBlipDisplay(); } } else if (e.KeyCode == ModOptions.instance.addToGroupKey) { RecruitGangMember(); } else if (e.KeyCode == ModOptions.instance.mindControlKey) { mindControlScript.TryBodyChange(); } else if (e.KeyCode == Keys.Space) { if (mindControlScript.HasChangedBody) { mindControlScript.RespawnIfPossible(); } } } }