Best practice is replaced keyboard and mouse yearly or every two years. They are very dirty, and germs and bacteria are indeed growing on those things.
These keyboards and mice comb are inexpensive and should be considered replace annually. My go to brand is Logitech.