Implemented keyboard_lastkey with help from greg.
Fixed it.
Merge pull request #262 from RobertBColton/master

Implemented keyboard_lastkey with code that changed hands six times. Sigh.