Fundamentals of Computer > Input Devices > How does the Computer Accepts Input from the Keyboard
Stemps to Accepts Input from the Keyboard
- When a key is pressed on a keyboard, the keyboard controller places the ASCII Code of the key to the keyboard buffer.
(keyboard buffer is a part of keyboard controller’s memory that holds data temporarily until it can be processed)

- The keyboard controller then sends an interrupt request (IRQ) to the system software indicating that something has happened at the keyboard.
- The system software responds to the interrupt request by reading the ASCII Code from the keyboard buffer. It then passes the scan code to the CPU.