from

fun from(keyEvent: KeyEvent): Key?

Answer the Key capture in the provided KeyEvent.

Return

The extracted Key or null if KeyEvent.keyCode does not map to a known KeyCode.

Parameters

keyEvent

The KeyEvent to extract the Key from.