             mapview.addOverlay(polyline, level: .AboveRoads)
             polylines.append(polyline)
         }
-        
+
         let boundingMapRect = boundingMapRectForPolylines(polylines)
         mapview.setVisibleMapRect(boundingMapRect, edgePadding: NSEdgeInsets(top: 10, left: 10, bottom: 10, right: 10), animated: true)
     }

    override func keyUp(theEvent: NSEvent) {
        if theEvent.keyCode == 36 { // 36 is the return key apparently
            addLineFromTextPressed(self.addLineFromTextButton)
        }
    }
    

        if textfield.stringValue.isEmpty {
            return
        }
        renderInput(textfield.stringValue as NSString)
    }
    
    @IBAction func removeLastLinePressed(sender: NSButton) {
