convert

Converts a DOM KeyboardEvent to a ZKeyboardEvent.

Return

A ZKeyboardEvent with key information and modifiers

Parameters

event

The DOM KeyboardEvent to convert

type

The type of keyboard event (KEY_DOWN, KEY_UP, KEY_PRESS)