title: Three.js: Make rotation with arrow keys smooth in panorama
body: <p>I am trying to create an interactive panorama application using three.js using this example <a href="http://threejs.org/examples/#webgl_panorama_equirectangular" rel="nofollow">Panorama</a>, but in this example there is no rotation with arrow keys (left and right arrow keys). So I added an event listener to do so and for making it smooth I used some varying speed upto some max limit and speed gets changed each time the listener function is called. I need to rotate the camera only not the cube/sphere Here is the code</p>
  
  <pre><code>on_key_down = function(event) 
  {
      keyPressed = event.keyCode;
      if (keyPressed === 37)
          lon -= keySpeed;
      else if (keyPressed === 39)
          lon += keySpeed;
      if (keySpeed &lt; keyMax)
          keySpeed += 1;
  }
  </code></pre>
  
  <p>Now with this, the rotation is not much smooth as we see in other panorama applications like KRPano or Google Business View. Any idea how can I make the rotation smooth like the above applications?</p>