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
Overriding TextInput/PreviewTextInput (or listening to the events) should work.
protected override void OnPreviewTextInput(TextCompositionEventArgs e) { base.OnPreviewTextInput(e); Console.WriteLine(e.Text); }