How can I stop my console application using keyboard input (for example "q")
without blocking process.