         let hideOptions: UIControlEvents = .TouchUpInside | .TouchUpOutside | .TouchDragOutside
         self.addTarget(self, action: Selector("showPopup"), forControlEvents: showOptions)
         self.addTarget(self, action: Selector("hidePopup"), forControlEvents: hideOptions)
-        self.addTarget(self, action: Selector("debugCycle"), forControlEvents: showOptions)
+//        self.addTarget(self, action: Selector("debugCycle"), forControlEvents: showOptions)
     }
     
     func debugCycle() {
         if self.keyView._attached == nil {
-            self.keyView._attached = Direction.Up
+            self.keyView._attached = Direction.Left
         }
         else {
             if self.keyView._attached! == Direction.Up {
-                self.keyView._attached = Direction.Left
+                self.keyView._attached = nil
             }
             else if self.keyView._attached! == Direction.Left {
                 self.keyView._attached = Direction.Down

//            self.label.minimumFontSize = 10
            self.label.userInteractionEnabled = false
            self.addSubview(self.label)
        }
        
        func setDefaultColors() {

            self.popup!.text = self.keyView.text
            self.keyView.label.hidden = true
            self.popup!.label.font = self.popup!.label.font.fontWithSize(22 * 1.5)
            
            self.popup!.attach(Direction.Down)
            self.keyView.attach(Direction.Up)
            
//            let startAttachmentPoints = map(self.keyView.attachmentPoints(Direction.Up)) {
//                self.convertPoint($0, fromView: self.keyView)
//            }
//            let endAttachmentPoints = map(self.popup!.attachmentPoints(Direction.Down)) {
//                self.convertPoint($0, fromView: self.popup!)
//            }
            
            let startAttachmentPoints = self.keyView.attachmentPoints(Direction.Up)
            let endAttachmentPoints = self.popup!.attachmentPoints(Direction.Down)
            
            let localStartAttachmentPoints = (
                self.convertPoint(startAttachmentPoints.0, fromView: self.keyView),
                self.convertPoint(startAttachmentPoints.1, fromView: self.keyView))
            let localEndAttachmentPoints = (
                self.convertPoint(endAttachmentPoints.0, fromView: self.popup!),
                self.convertPoint(endAttachmentPoints.1, fromView: self.popup!))
            
            let connector = KeyboardConnector(start: self.keyView, end: self.popup!)
            self.addSubview(connector)
        }
    }
    
