You can connect a wireless keyboard to a Mac or PC using Bluetooth, as long as the keyboard is charged and in pairing mode.
If you suspect your Bluetooth device freezes your Mac, there are some things you can check to troubleshoot.