CustomStream<KeyEvent> onKeyPress(EventTarget target)

Named constructor to produce a stream for onKeyPress events.

Source

static CustomStream<KeyEvent> onKeyPress(EventTarget target) =>
    new _KeyboardEventHandler('keypress').forTarget(target);