Good idea! Under X, xev can be used to display keyboard events.
Edit: Actually, USB keyboards, such as the one in PineBook Pro, cannot generate interrupts. Reading of the key press/release events is done entirely by polling.
Edit: Actually, USB keyboards, such as the one in PineBook Pro, cannot generate interrupts. Reading of the key press/release events is done entirely by polling.