- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ForgetCode
- {
- class Program
- {
- static void Main(string[] args)
- {
- ConsoleKeyInfo key = Console.ReadKey();
- Console.WriteLine("\nYou entered "+key.KeyChar);
- }
- }
- }