Trouble reading KeyDown and KeyHit in BlitzPlus

Blitz3D Forums/Blitz3D Beginners Area/Trouble reading KeyDown and KeyHit in BlitzPlus

When I try to use a while loop until a key is pressed in BlitzPlus, it never seems to read the keyboard. I tried adding the Flip command before Wend and also switched to a ps2 keyboard to see if my USB KVM was cauing problems... Same thing. It never breaks out of the loop. I have also tried using KeyHit.

;demo03-04.bb - Waits for a key and then exits

Print "This program is worthless."
Print "Press escape to exit."

;Wait until user presses 1 to Escape

;While Loop

While Not KeyDown(1)
;WaitKey
Flip
Wend

End