                 case 123: evt;   // left
                 default: evt;
                 }
+                
+                if evt.characters == "d" {
+                    if isEntityNode(self.fcs_cpy_orig) {
+                        killFcsNode()
+                        deleteEntityFile(self.entities_by_fn[self.fcs_cpy_orig.name!]!)
+                        self.fcs_cpy_orig.removeFromParent()
+                    }
+                }
             }
             else {
                 if evt.characters == "n" {

            return true
        }
        return false
    }
    func updateLrnEntityNote(ent: LrnEntity) {
        if ent.type == "text" {

    }
    func setFcsNode(node: SKNode) {
        killFcsNode()
        self.fcs_cpy_orig = node
        self.fcs_cpy = node.copy() as! SKNode
        self.fcs_cpy.name = "^focus"
        self.fcs_cpy.position = CGPoint(x:self.size.width/2, y:self.size.height/2)
