The software embedded in the hardware of a keyboard or mouse that controls its basic functions and behavior.