We can't do much with so little information. What Mac modle. What O version, what ti sthe make and model of keyboard? If you tell a mechanic"My car is making funny noises," hes going to ask for make/model details; same here.
This forum are is for Macs made before 1998 when wireless keyboards were a wish-for, so we can use your equipment details to get your post to a place where you'll get more traffic.