You can use any keyboard during recovery mode. But not connect BT devices (technically possible via some secret screen but it was stuck on a loading loop and needed a restart every time I tried) and I didn't have a wired mouse lol. So I had to voice mode + keybindings through a reinstall of MacOS which sounds easy but there were like 5 issues with focusing screens so regular tab didn't work and needed like cmd shift f4 and other mega random key bindings (thanks to AI this was easy to figure out though with enough trial and error). Had to restart it after an install thinking the keyboard would still work, but nope after login screen it wouldn't let me lol.
Pro tip — a magic keyboard with usb-c to lightning cable DOES NOT count as an accessory somehow. So you can use that.