public string GetKeyPressed() { Cosmos.System.KeyEvent k = Cosmos.System.KeyboardManager.ReadKey(); Cosmos.System.ConsoleKeyEx ex = k.Key; switch (ex.ToString()) { case "A": { return("A"); } case "B": { return("B"); } case "C": { return("C"); } } return("0"); }