CustomStream<KeyEvent> onKeyDown(EventTarget target)

Named constructor to produce a stream for onKeyDown events.

Source

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