; dxKeyHit Example ; Set up the timer current=MilliSecs() dxPrint "Press ESC a bunch of times for five seconds..." ; Wait 5 seconds While MilliSecs() < current+5000 Wend ; dxPrint the results dxPrint "Pressed ESC " + dxKeyHit(1) + " times."