title: GWT CellTable interact with enter key
body: <p>Hello I have a CellTable I want to select an element within a cell when I press Enter on the keyboard or when I click the mouse.</p>
  
  <p>The problem is that when I press the key nothing happens</p>
  
  <p>This is my code that enables the enter key functionality on the celltable</p>
  
  <pre><code> CellTable&lt;Value&gt; table = new CellTable&lt;Value&gt;();
  
      public void onCellPreview(CellPreviewEvent&lt;Value&gt; event) {
                      if (event.getNativeEvent().getKeyCode() == KeyCodes.KEY_ENTER) { // operation}
  </code></pre>
  
  <p>This is also the functionality for the mouse click</p>
  
  <pre><code>.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
                          public void onSelectionChange(SelectionChangeEvent event) {
  </code></pre>
  
  <p>My problem is that pressing "enter" on the keyboard will not run at first, but runs when I select it and then press enter.</p>
  
  <p>Please help.</p>