// DOM 2 key draft keypress
DOMKeyEvent evt = (DOMKeyEvent) e;
matched = evt.getCharCode() == accesskey;
} else {
// DOM 3 keydown
KeyboardEvent evt = (KeyboardEvent) e;
matched = evt.getKeyIdentifier().equals(keyName);
}
if (matched) {
owner.eventOccurred(this, e);
}
}