How to hide the key pressed in a .NET console application
November 25, 2015 Leave a comment
You probably know how to read the key pressed by the user in a .NET console application by the Console.ReadKey() method:
ConsoleKeyInfo pressedKey = Console.ReadKey();
Console.WriteLine("You have pressed: {0}", pressedKey.Key);