title: While typing in a text field enable a keystroke ENTER to activate a button in JavaFX
body: <p>Such as typing into the Google search box the hitting ENTER activates the search</p>
  
  <p>I've just been introduced to JavaFX and Scene Builder a few days ago so I'm learning the basics here. I have the latest version of JavaFX and am using Scene Builder to facilitate action events. Also, any pointers to relevant tutorials would be helpful. At one point in the day I was focused on the Keyboard section of the coding panel of Scene Builder, especially with the "On Key Released" event with no results. Thanks in advance</p>
  
  <p>Here's a rough idea of what I'm trying to do:</p>
  
  <pre><code>@FXML
  Text Field theTextField;
  
  @FXML
  Button theButton;
  
  @FXML  
  void ButtonPressed() {
      //do stuff here
  }
  
  @FXML
  //when ENTER is pressed the button is activated
  void textFieldEnterPressed() {
      ButtonPressed();
  }
  </code></pre>