hey, I was wondering if there is a better way to do this:

Code:
   /* Doesn't wait until a key is pressed */
   while (_bios_keybrd(_KEYBRD_READY) == 0) return;

   /* Fetch the key that is waiting */
   key = _bios_keybrd(_KEYBRD_READ);
so, if you dont press a key it returns.