The keyboard and mouse are the primary input devices for modern computers. The keyboard allows users to input text through key presses that are detected by the keyboard controller and sent to the CPU. The mouse allows users to control the pointer and interact with graphical interfaces through clicking, dragging, and scrolling. Different mouse variants include trackballs and trackpads. Proper ergonomics are important to prevent repetitive strain injuries when using input devices extensively.