                 sibling!.view.superview?.insertSubview(item.view, belowSubview: sibling!.view)
             }
         }
-        
+
         onAction(.setItemVisible) {
             (item: Item, val: Bool) in
             item.view.isHidden = !val
         }
-        
+
         onAction(.setItemClip) {
             (item: Item, val: Bool) in
             item.view.clipsToBounds = val
         }
-        
+
         onAction(.setItemWidth) {
             (item: Item, val: CGFloat) in
             item.width = val
         }
-        
+
         onAction(.setItemHeight) {
             (item: Item, val: CGFloat) in
             item.height = val
         }
-        
+
         onAction(.setItemX) {
             (item: Item, val: CGFloat) in
             item.x = val
         }
-        
+
         onAction(.setItemY) {
             (item: Item, val: CGFloat) in
             item.y = val
         }
-        
+
         onAction(.setItemScale) {
             (item: Item, val: CGFloat) in
             item.scale = val
         }
-        
+
         onAction(.setItemRotation) {
             (item: Item, val: CGFloat) in
             item.rotation = val
         }
-        
+
         onAction(.setItemOpacity) {
             (item: Item, val: Int) in
             item.view.alpha = CGFloat(val) / 255
         }
-        
+
         onAction(.setItemBackground) {
             (item: Item, val: Item?) in
             item.background = val
         }
-        
+
         onAction(.setItemKeysFocus) {
-            (item: Item, val: Bool) in ()
-        }
-    }
-    
+            (item: Item, val: Bool) in
+            item.keysFocus = val
+        }
+    }
+
     var id: Int!
     let view: UIView
-    
+
     var x: CGFloat = 0 {
         didSet {
             updateTransform()
         }
     }
-    
+
     var y: CGFloat = 0 {
         didSet {
             updateTransform()
         }
     }
-    
+
     var width: CGFloat = 0 {
         didSet {
             view.frame.size.width = width

            }
        }
    }

    class func save(item: Item) {
        assert(item.id == nil)

            updateTransform()
        }
    }

    var height: CGFloat = 0 {
        didSet {
            view.frame.size.height = height
