Files
c-sharp/KeyTesting/Program.cs

18 lines
424 B
C#
Raw Normal View History

2022-05-18 20:09:59 +02:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KeyTesting {
internal class Program {
static void Main(string[] args) {
while (true) {
Console.WriteLine("new key");
ConsoleKeyInfo key = Console.ReadKey();
Console.WriteLine("\n"+key.Key);
}
}
}
}