key

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

Gives you the pressed key as Key from a KeyboardEvent.