triggerKeyEvent

fun triggerKeyEvent(key: Key, up: Boolean, shift: Boolean = false, ctrl: Boolean = false, alt: Boolean = false, meta: Boolean = false)