static void Main(string[] args) { FlashLight flash = new FlashLight(); while (true) { if (Console.ReadKey().Key == ConsoleKey.A) { flash.HandleEvent(FlashLight.FlashLightEvent.PowerBtnPressed); } } }