public static void Main()
ConsoleKeyInfo keyInfo = Console.ReadKey();
Console.WriteLine("Key name is: " + keyInfo.Key);
Console.WriteLine("Key number is: " + (int)keyInfo.Key);
Console.WriteLine("Special keys: [{0}] ", keyInfo.Modifiers);
Console.WriteLine("Character entered: " + keyInfo.KeyChar);