Read a character from console in C#

Console.ReadKey() method accepts one character from console
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);                    
        }
    }
}