There is such a construction
Thread waitEnter = new Thread(() => { for (int i = 0; i < 5000; i++) { DrawField(); ruleSet.Tick(); } }); waitEnter.Start(); cki = Console.ReadKey(); if (cki.Key == ConsoleKey.Backspace) waitEnter.Abort(); In the last line I wanted to call Sleep, but it is not in the inaliens. I want the stream (application) to stop when I press the button, and when I press it again, it resumes.