Split keyboard driver code into separate file.