You can connect a wireless keyboard to a Mac or PC using Bluetooth, as long as the keyboard is charged and in pairing mode.
You can connect a wireless keyboard to your Mac in the same way that you pair any other Bluetooth device: through the Bluetooth menu.
The Magic Keyboard with Touch ID works with all Macs, but Touch ID only works with Apple Silicon Macs. This article teaches you how to connect a Magic Keyboard to a Mac, including all current models ...
In a move reminiscent of early personal computers like the Commodore 64, TRS-80, and countless others, Apple has filed a patent that could completely revamp the functionality of its Magic Keyboard.