changed handling the user input with Console.ReadKey