I want to get the keys pressed on the keyboard either with or without caplock:
private void Window_KeyDown(object sender, System.Windows.Input.KeyEventArgs e
You can't use the KeyDown event. You'll need to use the TextInput event. This will print the original letter with it's caption (Uppercase/Lowercase).
private void Window_TextInput(object sender, TextCompositionEventArgs e)
{
Console.WriteLine(e.Text);
}
Now, this will also print the Shift and so on if it's pressed. If you don't want those modifiers just get the last item of the string -treat it as a char array ;)-