Fixed some issues with the keyboard.