title: While loop when keyboard key is held
body: <p>My issue is rather simple. I want to run a loop while the user holds down a key, in my case <code>R</code>.</p>
  
  <p>The catch is: I don't <em>want</em> to use PyGame, and the console window will not be focused. (Selected)</p>
  
  <p><strong>Edit:</strong> I saw that this question was labeled a duplicate. I have checked the other thread, and the key difference between the two is that this one needs to check for a key to be held, <strong><em>with the python/console window out of focus and not selected.</em></strong></p>