Maya python keylogging

Did you ever get this to work in Maya. I was thinking the same thing. Making a program to display the keys pressed like they have in Blender.