The common PINs (like 0000 or 1234) usually don't work for Bluetooth keyboards.
Sometimes the PIN might be hidden on a sticker inside the battery compartment or on the back of the keyboard. It might also be mentioned in the user manual.
Try pairing mode (consult your keyboard's manual for instructions). In Windows Bluetooth settings, search for devices and try connecting without a PIN.