385 Subj : Re: Shift key status and ctrl-c To : borland.public.cpp.borlandcpp From : Bob Gonder Date : Wed Sep 07 2005 08:41 am Nick Townshend wrote: >Hi. Can anyone help with the following? I need to be able to detect whether >the shift key is pressed and also detect ctrl-c without the program >terminating in a console based app compiled with BCC55. Well, first off, you are in the wrong group. BCC55 is the compiler that comes with Builder 5, while this group is for Borland C++ which preceeded the Builder series. The Builder groups contain cppbuilder in their name. Your question would best fit borland.public.cppbuilder.nativeapi The Control-C is captured with SetConsoleCtrlHandler( &CtrlHandler, TRUE); (This is also where you capture Break, Close, Logoff and Shutdown.) As to the Shift, check out GetKeyState() GetKeyboardState() and GetAsyncKeyState(). . 0