I'm doing a simple example where depending the input key I write a different message on the console. The problem is that every time I read a key, the next Console.WriteLine()
result has an 'a' symbol concatenated at the start? Here's an example:
ConsoleKeyInfo keyInfor = Console.ReadKey();
if (keyInfor.Key == ConsoleKey.UpArrow)
{
Console.WriteLine("Up arrow");
}
Expected Result when I click Up Arrow: "Up arrow"
Actual Result: "aUp arrow"