Has your Mac's Bluetooth stopped responding or got stuck in the Off position? Do you have work to do and cannot afford a reboot?
If you have an Apple Magic Keyboard and Apple Magic Trackpad 2 (the ones with the Lightning port) you're in luck! Just plug the Lightning cables to these devices and connect them to your Mac. They will now work as wired devices, talking to your computer without going through Bluetooth.
Of course this doesn't work for the Magic Mouse 2 since the Lightning port is disingeniously at the bottom of the device, making it impossible to use it with the cable plugged in.