boot: fix a bug in the keyboard driver