Press Any Key: The Long Version
Precise sequence of events and state changes involved in a single keypress.
http://en.wikipedia.org/wiki/Keyboard_controller_(computing) http://en.wikipedia.org/wiki/Keyboard_buffer
https://www.google.co.uk/search?q=linux+how+does+the+keyboard+work&ie=UTF-8&oe=UTF-8&hl=en&client=safari http://www.linuxjournal.com/article/1080
https://www.google.co.uk/search?q=what+happens+when+you+press+a+key+on+the+keyboard&ie=UTF-8&oe=UTF-8&hl=en&client=safari
The gap buffer is beautiful. Even just MOVING THE CURSOR can mutate the state of the system.