key

fun <X : Element> DomListener<KeyboardEvent, X>.key(): Flow<Shortcut>
fun WindowListener<KeyboardEvent>.key(): Flow<Shortcut>

Gives you the pressed key as Shortcut from a KeyboardEvent.