Recovered some old code, fixed the keyboard up a bit.
More keyboard fixes.