Clean up globals. Add usb_keyboard_write.