title: JavaFX cannot close scene by Esc using getAccelerators()
body: <p>I can close my stage using 'X', this works: </p>
  
  <pre><code>primaryScene.getAccelerators().put(new KeyCodeCombination(KeyCode.X), primaryStage::hide);
  </code></pre>
  
  <p>but cannot close it using Esc, this doesn't work: </p>
  
  <pre><code>primaryScene.getAccelerators().put(new KeyCodeCombination(KeyCode.ESCAPE), primaryStage::hide);
  </code></pre>
  
  <p>Why and how to fix? </p>