have a look at this - :
http://www.blitzbasic.com/codearcs/codearcs.php?code=660
p.s. if you replace the Keydown function with the KeyHit function you can get rid of all thise latch_key variables - don't know what I was thinking at the time...........
http://www.blitzbasic.com/codearcs/codearcs.php?code=660
p.s. if you replace the Keydown function with the KeyHit function you can get rid of all thise latch_key variables - don't know what I was thinking at the time...........