Just catch the event where you want to handle it, and mark the event a handled.
private void StackPanel_PreviewKeyDown(object sender, KeyEventArgs e)
e.Handled = true;
I've found this example at the article:
To bubble or tunnel basic WPF events