Generally no but taking them apart to look at the chips inside is easy. Fwiw everything has a CPU in it these days. Actually that's been true since the 70s. Your old 1970's keyboard had a fully programmable CPU in it. Typically an Intel MCS-48 variant
https://en.wikipedia.org/wiki/Intel_MCS-48#UsesToday it's even more the case. You have fully programmable CPUs in your keyboard, trackpad, mouse, all usb devices, etc.