How to connect wireless keyboard on login screen My keyboard has discnnected from iMac when I used it on linux system and iPad.
I cannot find a way to connect it because there is no Bluetooth option on login screen and I cannot login because I cannot enter the password. Mac doesnt have on screen keyboard.

Is it possible that Ill need a separate hardware (keyboard) to fix this issue??
See if this works:

Unplug ALL USB devices, have your wireless keyboard and mouse turned on, and restart. The system sees that there are no input devices and searches for them. Then asks you to type a passcode and hit return.

If you have the Apple Keyboard 2 which has the Lightning port on the back of the keyboard, all you need to do is connect the USB -> Lightning cord to the computer and it will just like a normal wired keyboard.