title: Visual Basic Script - KeyPress Detection?
body: <p>I want to terminate the program once the key F1 is pressed.
  Not sure sure how to write the do while loop.
  Any Ideas?</p>
  
  <pre><code>Set WshShell = WScript.CreateObject("WScript.Shell")
  Do While {F1} is not pressed
  '...
  Loop
  </code></pre>