Records key events
All key events during a tick is stored in a buffer that at the end of the tick is appended to a main buffer and then cleared