INTERRUPT_REG
if (Q40_IRQ_KEYB_MASK & master_inb(INTERRUPT_REG))
while (maxread-- && (Q40_IRQ_KEYB_MASK & master_inb(INTERRUPT_REG)))