private void ClearKey(string Key, string Action) { InputEventKey EventKey = new InputEventKey(); EventKey.Scancode = (uint)EnumUtil.GetKeyFromString <int, KeyList>(Key); if (InputMap.HasAction(Action)) { if (InputMap.ActionHasEvent(Action, EventKey)) { InputMap.ActionEraseEvent(Action, EventKey); } } }