title: How to exit a while loop with a keystroke in C?
body: <p>I want to have user press the space key to jump out of the while loop. </p>
  
  <p>For example:</p>
  
  <pre><code>while ( some condition )
  
  {
  
  printf ("Press space bar to continue...");
  
  }
  </code></pre>
  
  <p>Thanks!!</p>