You're sure it's the keyboard and not just the computer making the clicking sound?? (I call it the click of death, I'd laugh but I've had it happen twice now and it's sooo not funny)
You have batteries for your keyboard?? If it is in fact the keyboard, I'd run to wallie world and pick up a new one for like 10-15 bucks. No batteries, but cheap.
If the clicking is coming from the computer..........it could be your video card or your motherboard. I've been lucky enough to have one of each. And now my new computer is doing it again. We're limping it along until Travis can pick me up another motherboard. Which will be the 2nd one for a computer that is only 6 months old. argh!!!