KeyboardInput.js keeps track of last 3 keys pressed

The last three keys that were pressed (within 0.3 seconds of the current
frame) are now recorded.