SyntaxFix
Write A Post
Hire A Developer
Questions
Yeah, this is a platform dependent question.
If you are writing a console program on POSIX, use the signal API (#include <signal.h>).
#include <signal.h>
In a WIN32 GUI application you should handle the WM_KEYDOWN message.
WM_KEYDOWN