title: Multiple key press on JavaFX scene
body: <p>How are multiple key events detected in a single scene? I need my program to detect when the space bar <em>and</em> the right arrow keys are pressed simultaneously.</p>
  
  <pre><code>scene.setOnKeyPressed(new EventHandler&lt;KeyEvent&gt;() {
      public void handle(KeyEvent ke) {
          if (ke.getCode() == KeyCode.RIGHT) {
              ///
          }
  
          if (ke.getCode() == KeyCode.LEFT) {
              ///
          }
  
          if (ke.getCode() == KeyCode.SPACE) {
              ///
          }
  
          if (ke.getCode() == KeyCode.RIGHT &amp;&amp; ke.getCode() == KeyCode.SPACE) {
              // How??
          }
      }
  });
  </code></pre>
  
  <p>The first 3 expressions look for a single key and work fine. The final expression never returns true. I believe only the latest key event is passed to the handler. </p>
  
  <p>I looked at <a href="http://docs.oracle.com/javafx/2/api/javafx/scene/input/KeyCodeCombination.html#KeyCodeCombination%28javafx.scene.input.KeyCode,%20javafx.scene.input.KeyCombination.Modifier...%29" rel="noreferrer">KeyCodeCombination</a>, however this appears to be for use in cases when a key has a modifier key from a specified list (ALT_DOWN, SHIFT_DOWN, etc).</p>
  
  <p>Is there a utility in FX that I can use?</p>