onKeyPressed

inline fun Node.onKeyPressed(noinline action: (KeyEvent) -> Unit)

See also

Node.setOnKeyPressed

inline fun Scene.onKeyPressed(noinline action: (KeyEvent) -> Unit)

See also

Scene.setOnKeyPressed