Found it. FlushConsoleInputBuffer(HANDLE hConsoleInput);