I want to wait for key press and read the key in C++ console application. Now I\'m using getch(), but it doesn\'t receive key press when is console window inact
getch()