title: Check if the spacebar is being pressed and the mouse is moving at the same time with jQuery?
body: <p>Is there a way to check if the space bar and at the same time track what direction the mouse is moving and how far etc.</p>
  
  <p>Point of this is that I want to replicate how Photoshop scrolls when you hold the space bar, left mouse button and you move the mouse, but without having to hold down the left mouse button.</p>