static void Main(string[] args) { // Create first console IConsole menuConsole = ConsoleAsync.CreateConsole(systemConsoleName); // Create a key filter for every key pressed in app menuConsole.AddKeyFilter((writer, info) => { string ch = info.KeyChar.ToString(CultureInfo.InvariantCulture); // check if the cher is a valid commend, then refresh menu if (EvaluateCommand(writer, ch)) { WriteMenu(writer); } // return true only if char NOT in available chars // input row remains empty return(ConsoleAsync.AvailableInputChars.Contains(ch)); }); menuConsole.Execute(WriteMenu); ConsoleAsync.Run(); }