 
 	// 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,



private func hotKeyEventHandler(eventHandlerCall: EventHandlerCallRef?, event: EventRef?, userData: UnsafeMutableRawPointer?) -> OSStatus {
	return HotKeysController.sendCarbonEvent(event)
}

		if error != noErr {
			return error
		}

		// Ensure we have a HotKey registered for this ID
		guard hotKeyID.signature == eventHotKeySignature,
			let hotKey = self.hotKey(for: hotKeyID.id)
		else {
			return OSStatus(eventNotHandledErr)
		}

		// Call the handler
		switch GetEventKind(event) {
		case UInt32(kEventHotKeyPressed):
			if let handler = hotKey.keyDownHandler {
				handler()
				return noErr
			}
		case UInt32(kEventHotKeyReleased):
			if let handler = hotKey.keyUpHandler {
				handler()
				return noErr
			}
		default:
			break
		}

		return OSStatus(eventNotHandledErr)
	}

	private static func updateEventHandler() {
