 
 	// MARK: - Events
 
-	static func sendCarbonEvent(_ event: EventRef?) -> OSStatus {
+	static func handleCarbonEvent(_ event: EventRef?) -> OSStatus {
+		// Ensure we have an event
 		guard let event = event else {
 			return OSStatus(eventNotHandledErr)
 		}
 
+		// Get the hot key ID from the event
 		var hotKeyID = EventHotKeyID()
 		let error = GetEventParameter(
 			event,

			return
		}

		let eventSpec = [
			EventTypeSpec(eventClass: OSType(kEventClassKeyboard), eventKind: UInt32(kEventHotKeyPressed)),
			EventTypeSpec(eventClass: OSType(kEventClassKeyboard), eventKind: UInt32(kEventHotKeyReleased))
		]

		InstallEventHandler(GetEventDispatcherTarget(), hotKeyEventHandler, 2, eventSpec, nil, &eventHandler)
	}


			return
		}

		// Store the event so we can unregister it later
		box.carbonEventHotKey = eventHotKey

		// Setup the event handler if needed
		updateEventHandler()
	}

	static func unregister(_ hotKey: HotKey) {
		// Find the box
		guard let box = self.box(for: hotKey) else {
			return
		}

		// Unregister the hot key
		UnregisterEventHotKey(box.carbonEventHotKey)

		// Destroy the box
		box.hotKey = nil
		hotKeys.removeValue(forKey: box.carbonHotKeyID)
	}
