Implemented keyboard_lastkey

Greg helped.