### Get KeyName Value

This sub can be used to determine the Keyvalue as Int from a KeyName.
'The key is defined in the KeyEvents, like VK_TAB which returns 9
'If key is not foud, -1 is returned
`Sub GetKeyEventValue(key As String) As Int
Dim result As Int = -1
Dim joKeyEvent As JavaObject
joKeyEvent.InitializeStatic("java.awt.event.KeyEvent")
Try
result = joKeyEvent.GetField(key)
Catch
Log(LastException.Message)
End Try
Return result
End Sub`

Changed: , Category: KeyEvents, File: T6C211M1543.htm, ID: 1543