List list = new List(); for (int i = 1; i <= 5; i++) { list.Add(Console.ReadKey(true).KeyChar); } Console.WriteLine(string.Join("",list));