title: trying to write if, else statement and detect keypress
body: <p>Hi I'm trying to write a batch file that when it gets to that area of the code waits for 10 seconds and then if a certain key is pressed exits, otherwise it goes to another area of the code.
  Here is what I got so far</p>
  
  <pre><code>SLEEP 10
  IF
  exit
  else if
  goto start
  </code></pre>
  
  <p>sorry, I don't know if this is correct. I'm just learning Lua and while similar to DOS they aren't quite the same. If anyone can fill in the gaps and fix the mistakes I would much appreciate it. The key I want to be pressed is either any or a specific key ID which</p>