Add external keyboard Type 1 and bug fixes.