title: WPF DataGrid - key that put a cell in editmode
body: <p>I'm using DataGrid key press events in my key down preview and key up events. Is there a way to detect whether a key will put the grid into edit mode (and detect this before the BeginningEdit callback) so I can anticipate edit mode on editable cells rather that handling those key presses is a special way? </p>
  
  <p>What's the best way to test if a key will put a cell into edit mode?</p>
  
  <pre><code>void DataGrid_OnPreviewKeyDown(object sender, KeyEventArgs e) {
      if (CanEnterCellEditMode(e.Key))
          return;
      else if (e.Key == Key.Escape) {
  
      }
  }
  </code></pre>