title: [Batch]Looping until a key is pressed
body: <p>what I want to do here is loop until "x" is pressed. I am aware of <code>CHOICE</code> with the <code>/T</code> option. </p>
  
  <p>But <code>CHOICE</code> has too long of a timeout for a animation that I want to play. Here is a example : </p>
  
  <pre><code>@echo off
  cls
  set frame=2
  :loop
  cls
  type [%frame%].txt
  [Here is where it would test for the keystroke.If keystroke "x" is detected,goto MENU. If not pressed within a quick second,continue.]
  set /a frame=%frame%+1
  goto loop
  </code></pre>
  
  <p><strong>note:</strong> The frames are for a animation,so do keep in mind that the timeout must be rather quick.</p>