9a1. The program just prints the number of keyboard interrupts, these are interrupts for press, release and hold. 9a2. It happens that within the spinning the keyboard handler prints the number of keypresses. This is because the priority is set to 257 because it's an interrupt handler. 9b. The program prints all interrupts, so a different for press and release.