Is it possible to intercept hardware (Bluetooth) keyboard events in an iOS Custom Keyboard Extension?

I'm developing an iOS custom keyboard extension and need to intercept external Bluetooth hardware keystrokes in the background. Can I capture these events within a UIInputViewController (e.g., using UIKeyCommand), or does iOS strictly route them directly to the host app? Are there any specific APIs or workarounds for this, or is it completely blocked by Apple's sandboxing policies?

The channel is probably encrypted. If it is not, then just write a bluetooth driver, I don't think that the way you are doing it is enough to intercept a modern bluetooth link. At least not the kind of links we have in my country... Sandbox does not block bluetooth. Sandbox does not block kernel extensions. Go to the library and pick up a book if you can't find online, regular pentesting is crucial to even try to maintain your posture in today's world. Just stop speculating and start executing.

Is it possible to intercept hardware (Bluetooth) keyboard events in an iOS Custom Keyboard Extension?
 
 
Q