Function RealTimeConsoleInput.kbhit
Returns true if there iff getch() would not block.
bool kbhit();
WARNING
kbhit might consume input that would be ignored by getch. This function is really only meant to be used in conjunction with getch. Typically, you should use a full-fledged event loop if you want all kinds of input. kbhit+getch are just for simple keyboard driven applications.