PyKeylogger mentioned in the related question might do the job.
The easiest way to do something like this, if you're not too fussy, is to bring in a GUI toolkit such as pygame or wxPython. For example, run the wxPython Demo, then go to the demo for KeyEvents.
I found the answer using a link in a related question to pyHook:
pyHook tutorial: capturing keypress events