Fixed a bug about wrong capslock handling in the keyboard driver.