Lots of fixes toward getting the keyboard working.