Apple - Can't pair apple wireless keyboard
If only one number key is working, it sounds like a hardware issue. My brother had a wireless keyboard that flaked out and only certain keys functioned (although in his case it was from a liquid spill).
Do you have any other Bluetooth-capable device to test with? Any iOS device can pair with the keyboard to test it.