title: Beeping in a vb.net console application until a press the spacebar
body: <p>How can I continue processing in a vb.net console application until I press a key?  I basically want to loop playing a beep every half second until the user presses any key.  I have the loop and beeping down:</p>
  
  <pre><code>Do Until &lt;key is pressed&gt;
     Console.Beep()
     Sleep(500)
  Loop
  </code></pre>
  
  <p>The question is, how do I implement the "<code>&lt;key is pressed&gt;</code>" condition?</p>