function isValidKeyCode(keyCode) {
    if (keyCode == Key.Escape)
      return false;
    for (let k in Key) {
      if (Key[k] == keyCode)
        return true;
    }
    return (keyCode >= 'A'.charCodeAt(0) && keyCode <= 'Z'.charCodeAt(0)) ||
        (keyCode >= '0'.charCodeAt(0) && keyCode <= '9'.charCodeAt(0));
  }
/**
   * Checks whether the passed in |keyCode| is a valid extension command key.
   * @param {number} keyCode
   * @return {boolean} Whether the key is valid.
   */
Checks whether the passed in |keyCode| is a valid extension command key.
@param {number} keyCode
@return {boolean} Whether the key is valid.
Checks whether the passed in |keyCode| is a valid extension command key . @param { number } keyCode @return { boolean } Whether the key is valid .
function isValidKeyCode(keyCode) {
    if (keyCode == Key.Escape)
      return false;
    for (let k in Key) {
      if (Key[k] == keyCode)
        return true;
    }
    return (keyCode >= 'A'.charCodeAt(0) && keyCode <= 'Z'.charCodeAt(0)) ||
        (keyCode >= '0'.charCodeAt(0) && keyCode <= '9'.charCodeAt(0));
  }
function isValidKeyCode ( keyCode ) { if ( keyCode == Key . Escape ) return false ; for ( let k in Key ) { if ( Key [ k ] == keyCode ) return true ; } return ( keyCode >= 'A' . charCodeAt ( 0 ) && keyCode <= 'Z' . charCodeAt ( 0 ) ) || ( keyCode >= '0' . charCodeAt ( 0 ) && keyCode <= '9' . charCodeAt ( 0 ) ) ; }
Checks whether the passed in |keyCode| is a valid extension command key.
Checks whether the passed in |keyCode| is a valid extension command key .