code: static String validateShortcut(String shortcut) {
          try {
              shortcut = KeyCode.normalizeKeyCapture(shortcut);
          } catch (Exception e) {
              shortcut = null;
          }
          
          return shortcut;
      }
docs: /*package