Gets whether the escape key was pressed since the last time this function was called.
Though in reality the actual escape state is checked no more than once every
50 milliseconds or so, which should be sufficient for a smooth user experience.
Grasshopper (in Grasshopper.dll)
public static bool IsEscapeKeyDown()
Public Shared Function IsEscapeKeyDown As Boolean
True if escape was/is pressed, false if otherwise.
If GetAsyncKeyState is called by some other application, it will mess
with the value returned here, as GetAsyncKeyState is a system wide static method.