private void TryRegisterHotkey(string name, BindingKeysData value) { Mod.Debug(MethodBase.GetCurrentMethod(), name, HotkeyHelper.GetKeyText(value)); if (value != null) { HotkeyHelper.RegisterKey(name, value, KeyboardAccess.GameModesGroup.All); } else { HotkeyHelper.UnregisterKey(name); } }