Writing an Interrupt-Driven Keyboard Handler: VKEYBD, KBCODE and a Type-Ahead Buffer How POKEY and the OS handle a key press (KBCODE, the IRQ, debounce, auto-repeat), and how to replace the VKEYBD vector with your own handler: a tested 16-key type-ahead buffer in MADS. ATARI8