boot: fix a bug that the remaining keyboard buffer prevents new keyboard interrupts
boot: fix a bug in the keyboard driver