function isCtrlKey(keyCode) {
  var keys = [];

  if (navigator.platform.includes('Mac')) {
    keys.push(KEY_CODES.COMMAND_LEFT, KEY_CODES.COMMAND_RIGHT, KEY_CODES.COMMAND_FIREFOX);
  } else {
    keys.push(KEY_CODES.CONTROL);
  }

  return keys.includes(keyCode);
}
Checks if passed key code is ctrl or cmd key. Depends on what OS the code runs it check key code based on
different meta key codes.

@param {Number} keyCode Key code to check.
@returns {Boolean}