title: javascript / threejs - detect when a key is released
body: <p>I'm using this javascript keyboard library for threejs, and it seems as though it is able to detect when a key is released. How would I incorporate this into my project? Here is the documentation:</p>
  
  <p><a href="http://learningthreejs.com/data/THREEx/docs/THREEx.KeyboardState.html" rel="nofollow">http://learningthreejs.com/data/THREEx/docs/THREEx.KeyboardState.html</a></p>
  
  <p>and here is how I currently detect which key is pressed:</p>
  
  <pre><code>if (keyboard.pressed("left")){ 
  //do stuff
  }
  </code></pre>