This is a quote from there:
To determine what the corresponding KeyCode is for a particular string, type the following in the Immediate window and then press ENTER: ?KeyCode("TestString")
The earlier example returns 5864.