vkkeycode% = Gfa_KeyGet
Returns the virtual key code for a pressed key. This function could be used for various purposes, but can be invoked not before an editor extension is invoked. It is safely implemented as a PeekMessage loop filtering keyboard messages. Once executed the Gfa_KeyGet function exits and returns 0 after a time out of 60 seconds when no keyboard message has arrived. It also returns 0 when one of the mouse buttons is clicked, a menu is selected, Alt is pressed, or when a WM_APPACTIVATE is received.
Gfa_KeyGet ignores the shift state of the Shift keys, it returns the codes 8, 9, 13, 27, and greater than 31 that are in the low order word of the wParam of the WM_KEYDOWN message.
{Created by Sjouke Hamstra; Last updated: 12/05/14 by James Gaite}