ja, could just build in the "timer" as part of your loop ...

Code:

$i = 0

$sleep = 10

? "Waiting ..."

Do
Sleep 1
$i = $i + 1
If KBHit()
get $hit
$hit = @ERROR
Endif
Until $i = $sleep Or $hit = 103

?"Done"