When you connect a Bluetooth device such as a keyboard, mouse, trackpad, etc. to your Mac

Rename Bluetooth device

The Bluetooth device connected to the Mac will be displayed in the “Devices” area, so move the mouse over the device you want to rename and right-click.