// mainwindow.xaml<Window ...> <Window.CommandBindings> <CommandBinding Command="{x:Static local:MainWindow.upCmd}" Executed="UpCmd" /> </Window.CommandBindings></Window>// mainwindow.xaml.cspublic static RoutedCommand upCmd = new RoutedCommand();// mainwindow constructorupCmd.InputGestures.Add(new KeyGesture(Key.Up));// methodprivate void UpCmd(object sender, ExecutedRoutedEventArgs e) { ...}My problem is, that as soon as I click into another Textbox all my keyboard-shortcuts won't work anymore, I assume because the main window loses focus?So how can I enable my keyboard shortcuts to execute some special operations and at the same time beeing able to allow my Textbox to be set by typing in values via the keyboard?Thanks!