1. The screen edge
A small menu-bar app (Mac) or tray app (Windows) watches the cursor 50 times a second. Hold it against the edge that faces the other computer for 50 ms, away from the corners, and it switches. It only re-arms after the cursor has left the edge, so arriving back never bounces you straight away again.
2. Logitech's own command
It talks to the devices over the Bluetooth or receiver link they already use, with Logitech's HID++ 2.0 Change Host command (feature 0x1814): mouse first, then keyboard. It then checks that each device really left and re-sends up to three times if one did not.
3. The other one follows
Press Easy-Switch on the keyboard or a channel button on the mouse, and the device disappears from this computer. PairSwitch notices and sends the other one after it. If the computer was idle for over a minute, it assumes the device just went to sleep and does nothing.
4. Clipboard, optional and off by default
The Mac listens on TCP port 51888 and the PC dials out to it, so nothing ever connects in to the PC. Every message is AES-256-CBC with an HMAC-SHA256 tag and a timestamp, under keys made from a shared 16-character pairing code (PBKDF2-SHA256, 200,000 rounds). Text only, up to 1 MB. No internet, no account, no third party.