Object: KeyBinding Object
Access: Read-Only
Returns the ANSI number of the key associated with the keybinding object.
KeyBinding.VirtualKey
None.
A long that represents the ANSI number of the key associated with the keybinding object.
' With BindingTables object defined
' Assign shortcut keys Alt+2 to View->FitAll command
docBindingTables.AddKeyBinding "Alt+2", "View->FitAll", 0, 1
' With KeyBindings object defined
' VirtualKey property will return 50 which is the ANSI number of key "2"
MsgBox docKeyBindings.Item(1).VirtualKey