mouse
move the pointer on the screen
how does the mouse work
it has a sensor on the bottom of the mouse to tell the computer the mouse’s movement
Keyboard
each key is connected to a certain switch which closes when the key is pressed which then sends signals to the CPU based on the keys location