using System;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
while (true)
{
Console.WriteLine("Press 'e' to exit");
var ch = Console.ReadKey().KeyChar;
Console.WriteLine();
if (char.ToLower(ch) == 'e') break;
}
}
}
}
/*
run:
Press 'e' to exit
d
Press 'e' to exit
t
Press 'e' to exit
e
*/