function getNativeKeyName(keyboardKey) {
  const key = keyboardKey.trim();

  const keyMap = {
    Ctrl: {
      mac: 'Control',
      win: 'Ctrl',
      linux: 'Ctrl',
    },
    Super: {
      mac: 'Command',
      win: 'Windows',
      linux: 'Super',
    },
    Alt: {
      mac: 'Option',
      win: 'Alt',
      linux: 'Alt',
    },
  };

  let platform = '';

  switch (process.platform) {
    case 'win32':
      platform = 'win';
      break;

    case 'darwin':
      platform = 'mac';
      break;

    default:
      platform = 'linux';
  }

  if (Object.keys(keyMap).includes(key)) {
    return keyMap[key][platform];
  }

  return key;
}
Returns the platform-specific key name
for given key.

@param {string} keyboardKey
Name of the key