Connect iMac accessories to MacBook via AirPlay display

Autoconnect iMac's trackpad and keyboard to device from which airplayed to iMac


I use iMac as a secondary monitor for my MacBook from which I use AirPlay to it. iMac Has external keyboard and trackpad, those become useless since airplay is started, I want them to connect to MacBook which is used as primary display for iMac.

Is there way to make it happen?

Posted on Jan 21, 2026 5:07 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 21, 2026 9:32 AM

Short answer: no, macOS can’t automatically “pass through” an iMac’s keyboard and trackpad to a MacBook when the iMac is being used as an AirPlay display. AirPlay is strictly a display-and-audio protocol; it doesn’t forward HID (keyboard/mouse/trackpad) input to the source Mac. Once AirPlay starts, the iMac remains its own computer, so its accessories stay paired to the iMac and won’t control the MacBook.


That said, there are workable alternatives, depending on how seamless you want things to feel. The most practical Apple-native option is Universal Control. When both Macs are signed into the same Apple Account, on the same network, and have Bluetooth enabled, you can move the pointer from the MacBook onto the iMac (or vice versa) and use one keyboard and trackpad across both machines.


If you specifically want the iMac’s keyboard and trackpad to control the MacBook, you basically have three options:

  1. Pair them directly to the MacBook via Bluetooth and leave them paired there permanently (manual switching only).

2. Use a software KVM which forwards input over the network.

3. Use a hardware USB/Bluetooth switch to toggle the accessories between Macs.

4 replies
Question marked as Top-ranking reply

Jan 21, 2026 9:32 AM in response to gorbierd

Short answer: no, macOS can’t automatically “pass through” an iMac’s keyboard and trackpad to a MacBook when the iMac is being used as an AirPlay display. AirPlay is strictly a display-and-audio protocol; it doesn’t forward HID (keyboard/mouse/trackpad) input to the source Mac. Once AirPlay starts, the iMac remains its own computer, so its accessories stay paired to the iMac and won’t control the MacBook.


That said, there are workable alternatives, depending on how seamless you want things to feel. The most practical Apple-native option is Universal Control. When both Macs are signed into the same Apple Account, on the same network, and have Bluetooth enabled, you can move the pointer from the MacBook onto the iMac (or vice versa) and use one keyboard and trackpad across both machines.


If you specifically want the iMac’s keyboard and trackpad to control the MacBook, you basically have three options:

  1. Pair them directly to the MacBook via Bluetooth and leave them paired there permanently (manual switching only).

2. Use a software KVM which forwards input over the network.

3. Use a hardware USB/Bluetooth switch to toggle the accessories between Macs.

Connect iMac accessories to MacBook via AirPlay display

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.