To take back control of your Mac swiftly, you can end an AirPlay streaming or mirroring signal from any iOS device by pressing the Esc key on your Mac. Alternatively, you can jiggle the cursor a bit to reveal a "Cancel" button in the upper-left corner of your Mac’s screen.