     }
     
     func shiftDown(sender: KeyboardKey) {
+        if self.shiftWasMultitapped {
+            self.shiftWasMultitapped = false
+            return
+        }
+        
         switch self.shiftState {
         case .Disabled:
             self.shiftState = .Enabled

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

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