             attribute: (dir.horizontal() ? NSLayoutAttribute.CenterY : NSLayoutAttribute.CenterX),
             multiplier: 1,
             constant: 0)
+        centerConstraint.priority = 500
         self.constraintStore += (self, centerConstraint)
         
         for (view, constraint) in self.constraintStore {

        super.init(frame: frame)
        
        self.clipsToBounds = false
        self.addSubview(self.keyView)
        
        self.ambiguityTimer = NSTimer.scheduledTimerWithTimeInterval(0.1, target: self, selector: "timerLoop", userInfo: nil, repeats: true)
        

    }
    
    func redrawText() {
//        self.keyView.frame = self.bounds
//        self.button.frame = self.bounds
//        
//        self.button.setTitle(self.text, forState: UIControlState.Normal)
        
        self.keyView.text = (self.text ? self.text : "")
    }
    
