title: Using JavaFX 8 Scene, Read Keyboard Input while running
body: <p>I have my JavaFX 8 Scene going nicely. Now, while everything else is happening, I would like to continuously check for any KeyEvent/KeyCode while the program is running. I have a Timeline called timeline set to INDEFINITE and I've set my cycle count to indefinite with </p>
  
  <pre><code>timeline.setCycleCount(Timeline.INDEFINITE);
  </code></pre>
  
  <p>I'm looking for an easy method that is also clean and won't make my program choppy. </p>