public KeyboardShortcut AddShortcut(Action callback, params KeyCode[] keys)
        {
            var s = new KeyboardShortcut()
            {
                ID       = GetControlID(),
                Callback = callback,
                KeyCodes = keys
            };

            shortcuts.Add(s);

            return(s);
        }
        public KeyboardShortcut AddShortcut(Action callback, KeyCode key)
        {
            var s = new KeyboardShortcut()
            {
                ID       = GetControlID(),
                Callback = callback,
                KeyCodes = new KeyCode[] { key }
            };

            shortcuts.Add(s);

            return(s);
        }
        public KeyboardShortcut AddShortcut(Action callback, KeyCode key, bool control, bool alt, bool shift)
        {
            var s = new KeyboardShortcut()
            {
                ID       = GetControlID(),
                Callback = callback,
                KeyCodes = new KeyCode[] { key },
                Control  = control,
                Alt      = alt,
                Shift    = shift
            };

            shortcuts.Add(s);

            return(s);
        }
 public void RemoveShortcut(KeyboardShortcut shortcut)
 {
     shortcuts.Remove(shortcut);
 }