Keep a wired USB mouse and keyboard handy for troubleshooting Mac issues. While wireless Magic devices can work via USB-C, a basic wired setup is reliable if Bluetooth or pairing fails during macOS Recovery.
https://sealsystems.net/go/keep-a-usb-mouse-and-keyboard-around-for-troubleshooting/