This is how I do it in my framework:
' ----------------------------------------------------------------------------- ' ccAnyKeyPressed: Tests if any key has been hit ' ----------------------------------------------------------------------------- Function ccAnyKeyPressed%() For Local i% = 0 To 255 If KeyHit(i) Then Return 1 Next Return 0 End Function