This is almost similar to the B3D/B+ variant. With a bit of extra typing you can get it to return Ascii values instead of scancodes...
Something along these lines:
Function GetKey() Repeat For Local n=1 To 255 If KeyHit(n) Return n Next Forever End FunctionOr perhaps it's better to add it to the system.xxx.bmx mods?
Something along these lines:
Method GetKey( ) For Local keycode = 1 to 255 Local n=bbSystemKeyHit[keycode] if n return n Next End MethodDon't know if it'll work...