Keyboard device code.