function triggerKeyPressEvent(keyName, keyCode, element) {
    element = element || checkbox;

    // Note: MockInteractions incorrectly populates |keyCode| and |code| with
    // the same value. The intention of passing a string here is only to set
    // |code|, since |keyCode| is not used its value doesn't matter.
    MockInteractions.keyEventOn(
        element, 'keypress', keyCode, undefined, keyName);
  }
/**
   * @param {string} keyName The name of the key to trigger.
   * @param {string} keyCode The event keyCode and code to trigger.
   * @param {HTMLElement=} element
   */
@param {string} keyName The name of the key to trigger.
@param {string} keyCode The event keyCode and code to trigger.
@param { string } keyName The name of the key to trigger . @param { string } keyCode The event keyCode and code to trigger .
function triggerKeyPressEvent(keyName, keyCode, element) {
    element = element || checkbox;
    MockInteractions.keyEventOn(
        element, 'keypress', keyCode, undefined, keyName);
  }
function triggerKeyPressEvent ( keyName , keyCode , element ) { element = element || checkbox ; MockInteractions . keyEventOn ( element , 'keypress' , keyCode , undefined , keyName ) ; }
@param {string} keyName The name of the key to trigger.
@param { string } keyName The name of the key to trigger .
// Note: MockInteractions incorrectly populates |keyCode| and |code| with // the same value. The intention of passing a string here is only to set // |code|, since |keyCode| is not used its value doesn't matter.