KeyEvent(
String type,
{Window view,
bool canBubble: true,
bool cancelable: true,
int keyCode: 0,
int charCode: 0,
int keyLocation: 1,
bool ctrlKey: false,
bool altKey: false,
bool shiftKey: false,
bool metaKey: false,
EventTarget currentTarget}
)

Programmatically create a new KeyEvent (and KeyboardEvent).