title: Fire Button's onAction with Enter in JavaFX
body: <p>I'm a newbie to JavaFx. In my JavaFX application I have set onAction property and it works fine when I press the button using  mouse. I want to fire the same even when user press Enter on button. I know I can use a even handler to do that.
  But when I read the onAction JavaDoc it says that this event get fire by a key press.</p>
  
  <blockquote>
    <p>Property description:</p>
    
    <p>The button's action, which is invoked whenever
    the button is fired. This may be due to the user clicking on the
    button with the mouse, or by a touch event, <strong>or by a key press</strong>, or if
    the developer programmatically invokes the fire() method.</p>
  </blockquote>
  
  <p>But when I press Enter key nothing happens. Is it error in documentation? Are there any other way to achieve that without adding alistener to the button?</p>
  
  <p>P.S</p>
  
  <p>After the comments I checked with space key then it get fired. But I want to set that to Enter key.
  I have many buttons. I tried <code>button.setDefaultButton(true);</code> but it is not get fired. I think that is becacuse there are more than one button. If I set it just to a single button it works fine. How to set that to multiple buttons?</p>