Post the code inside [ CODE ] tags so we can see it properly. Try adding some comments so you can be sure of the result. Also, QUIT accepts a parameter and so will try to enumerate what follows.
code:
break on
For $counter = 1 to 100
Sleep 0.05
If KbHit()
'quitting'?
Quit 1
Endif
Next
'timed out'?

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.