/src/main/java/org/htmlunit/html/HtmlElement.java
if ( !keyDown.getType( ) ) {
if ( !keyDown.isAborted ( keyDownResult ) ) {
shiftDown = null; shiftDownResult = null; } final Event keyDown = new KeyboardEvent(this, Event.TYPE_KEY_DOWN, c, shiftPressed_ || isShiftNeeded, ctrlPressed_, altPressed_); final ScriptResult keyDownResult = fireEvent(keyDown); <extra_id_0> final Event keyPress = new KeyboardEvent(this, Event.TYPE_KEY_PRESS, c, shiftPressed_ || isShiftNeeded, ctrlPressed_, altPressed_); final ScriptResult keyPressResult = fireEvent(keyPress); if ((shiftDown == null || !shiftDown.isAborted(shiftDownResult)) && !keyPress.isAborted(keyPressResult)) { doType(c, lastType);