Concat KeyDown event (Keys) to one C# (wpf) string
I have a magnetic card reader that uses the keyboard input to send data. I am using a KeyDown event where I get this object (C# WPF): KeyEventArgs e I want to take the keys that I get and make them one string. I tried to concat e.Key.ToString() , but that doesn't work. My input has lots of numbers and signs (such as ; ? = etc.), and the e.Key.ToString() thing doesn't work (it gives me D3 for a number, and SHIFT or CTRL + another key for the signs). I just want the string, so when I use for example Console.WriteLine I will get something like ;51895401051=000001341? and not