AH = 13h: Wait for Keyboard Event

This function detects keyboard events, even those that don't place keycodes in the keybuffer. This service can read both standard scancodes and the palmtop's extended scancodes. Note that this service translates certain keycodes (see "I16Clip" on page 3-113). It returns to the caller when any of the following 3 conditions are satisfied: