AH = 01h: Report If Character Available

This function examines the keyboard input buffer to see if a scancode/ASCII pair is available. If a pair is available, it is returned without removing it from the buffer. The function returns after the first interrupt (generally a Timer Interrupt), regardless of whether a scancode/ASCII pair is available. Note that this function discards certain keycodes. See "I16Clip" on page 3-113 for more information. Use function 11h for the extended scancodes.