         if window?.firstResponder != self { return false }
 
         let keyCodeInt = Int(theEvent.keyCode)
-        if recording && validateModifiers(inputModifiers) {
+        if isRecording && validateModifiers(inputModifiers) {
             let modifiers = KeyTransformer.carbonFlags(from: theEvent.modifierFlags)
             if let keyCombo = KeyCombo(keyCode: keyCodeInt, carbonModifiers: modifiers) {
                 if delegate?.recordView(self, canRecordKeyCombo: keyCombo) ?? true {

        }

        willChangeValue(forKey: "recording")
        recording = true
        didChangeValue(forKey: "recording")

        updateTrackingAreas()

        }

        let locationInView = convert(theEvent.locationInWindow, from: nil)
        if mouse(locationInView, in: bounds) && !isRecording {
            _ = beginRecording()
        } else {
            super.mouseDown(with: theEvent)
