to check for escape key in winmain.cpp ioctrldemo