Fixed deadlock in keyboard driver