Or you can use a counter like below
Local Hold:int = 1000 'in frames
While Not KeyHit(KEY_ESCAPE)
'This part will be delayed until Hold is zero
If Hold = 0 then
DoStuff()
Else
Hold:-1 'reduce the frame counter
End If
'This part will always be executed
DoOtherStuff()
Wend