SyntaxFix
Write A Post
Hire A Developer
Questions
I suggest you use curses.h or ncurses.h these implement keyboard management routines including getch(). You have several options to change the behavior of getch (i.e. wait for keypress or not).