This is an problem i have for a week right now and i don't find answer.
the problem is that i want to make program and with all its command and so but when you hit the escape button you go back to the menu.
i don't want a big code that uses Windows.h library. I hope i can get answer soon...
you may need to use the nonstandard libraries to use getch so you can hit it without pressing enter afterwards. That is found in conio.h I think.
I would write a micro throw-away program to read it and print in hex exactly what you get from the escape key (it may be 2 char sequence, I have forgotten!) and trap that code to do the task.