I am trying to do a press Q to quit thing in the console window. I dont like my current implementation. Is there a way i can async or use a callback to get keys from the con
You can use the KeyAvailable property (Framework 2.0) :
if (System.Console.KeyAvailable) { ConsoleKeyInfo key = System.Console.ReadKey(true);//true don't print char on console if (key.Key == ConsoleKey.Q) { //Do something } }