title: Unable to get setOnKeyReleased to work in JavaFX
body: <p>I'm making a game in JavaFX and my professor gave us a minimal game engine that includes a KeyManager convenience class with a method for checking if a key is pressed. 
  The only problem with this is that this then checks if a key is pressed during each iteration of the game loop. At 60fps, this means that even quickly and lightly typing a key detects it as being pressed several times in a row. This sends objects flying to the sides of the screen way too quickly.</p>
  
  <p>I've been trying to set up a setOnKeyReleased handler for the game, but I can't seem to get it to work. I think my problem is that I'm not adding it to the right node, but I've tried everything in my game. I've tried <code>game.getScene().setOnKeyReleased etc</code>, primaryStage.getScene().setOnKeyReleased, and the same for every node I have in the game. I don't have anything clickable in the game, so I don't see how the focus can change or anything. </p>
  
  <p>The game will have objects move based on the key pressed, but I'm just trying to get it to print to the console for testing to figure out where it works:</p>
  
  <pre><code> primaryStage.getScene().setOnKeyReleased(new EventHandler &lt;KeyEvent&gt;() {
          public void handle(KeyEvent k) {
              System.out.println(k.getCode().toString());
          }//handle
      });//setOnKeyReleased
  </code></pre>
  
  <p>I've literally hit a brick wall and can't figure it out. I've tried several guides and suggestions online to no avail.
  Thanks for your help. </p>