             }
         }
     }
+    
+    var shiftWasMultitapped: Bool = false
     
     var keyboardHeight: CGFloat {
         get {

    }
    
    func shiftDown(sender: KeyboardKey) {
        switch self.shiftState {
        case .Disabled:
            self.shiftState = .Enabled

    }
    
    func shiftDoubleTapped(sender: KeyboardKey) {
        self.shiftWasMultitapped = true
        
        switch self.shiftState {
        case .Disabled:
            self.shiftState = .Locked
            sender.text = "L"
            sender.highlighted = true
        case .Enabled:
            self.shiftState = .Locked
            sender.text = "L"
            sender.highlighted = true
        case .Locked:
            self.shiftState = .Disabled
            sender.text = "⇪"
            sender.highlighted = false
        }
    }
    
    func updateKeyCaps(lowercase: Bool) {
