My Wireless Keyboard Suddenly Won't Work


I have an Imac G5 with a wireless keyboard and mouse. For these two devices I use rechargeable batteries. My batteries ran low on power and I recharged them. I turned off the computer and put in the batteries. When I turned the computer back on, it only picked up the mouse. It didn't find the keyboard. I moved the batteries around and turned the keyboard on again. The small green light by the switch turns on and it acts like its trying to find a connection with the computer. On the other hand, now the "Caps Lock" key won't light up. So I'm not really sure whats the issue here. Can anyone help me? (I'm advanced with computers.)