function MyFakeEvent(keyCode, eventType = KeyHandler.EventType.KEY) {
  /** @suppress {globalThis} suppression added to enable type checking */
  this.type = eventType;
  /** @suppress {globalThis} suppression added to enable type checking */
  this.keyCode = keyCode;
  /** @suppress {globalThis} suppression added to enable type checking */
  this.propagationStopped = false;
  /** @suppress {globalThis} suppression added to enable type checking */
  this.preventDefault = () => {};
  /** @suppress {globalThis} suppression added to enable type checking */
  this.stopPropagation = function() {
    /** @suppress {globalThis} suppression added to enable type checking */
    this.propagationStopped = true;
  };
}
Creates an event for use in multiple tests.
@param {!KeyCodes} keyCode Key event to handle.
@param {!KeyHandler.EventType=} eventType An optional EventType that defaults
    to `KeyHandler.EventType.KEY`, but can be set to a different EventType.