What is wrong with code?

BlitzPlus Forums/BlitzPlus Programming/What is wrong with code?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Print("press esc 5 times to quit!")
eschits=5
While(eschits)
If(KeyHit(1))
eschits=eschits-1
Print "Esc Hit"
Wend
If eschits=0
End

When I compile this and run the program. The first line is there along with a blank prompt for the second. Any idea why it doesnt work?