Looking for a better way to cancel on keypress from the console - C#