private void OnFlightViewKeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Delete) { // remove this flight. } }