createEvent(eventType) → Event Creates an instance of the specified Event subclass. eventType String The name of an event type: one of "UIEvent", "KeyboardEvent", or "MouseEvent".