in reply to Capturing user actions

You could try the Tk module.