sendKey

fun sendKey(key: Key, modifiers: Set<KeyModifier> = emptySet())(source)

Simulates the user pressing a specific key.