 		UIButton.appearance().tintColor = KeyboardAppearance.secondaryButtonColorForApperance(appearance)
     }
 	
-	func casedLetterForLetter(letter: String) -> String {
+	func appropriatelyCasedString(string: String) -> String {
 		switch self.shiftState {
 			case .Locked, .Enabled:
-				return letter.uppercaseString
+				return string.uppercaseString
 			case .Disabled:
-				return letter.lowercaseString
-		}
-	}
-	
-	func typeLetter(letter: String) {
+				return string.lowercaseString
+		}
+	}
+	
+	func typeString(string: String) {
 		let proxy = self.textDocumentProxy as UITextDocumentProxy
-		let casedLetter = casedLetterForLetter(letter)
-		proxy.insertText(casedLetter)
+		let casedString = appropriatelyCasedString(string)
+		proxy.insertText(casedString)
 		
 		switch self.shiftState {
 			case .Locked:

	case Enabled
	/// Shift is locked-- continue to type capitals.
	case Locked
}

class KeyboardViewController: UIInputViewController {

			let loc = sender.locationInView(view)
			let subview = view.hitTest(loc, withEvent: nil)
			if let subview = subview as? KeyboardKey {
				typeString(subview.letter)
			} else if let subview = subview as? Spacebar {
				typeString(" ")
			}
		}
	}
