Writing a X keylogger would require X-specific code, and should have no way of doing that from Windows code via Wine.

At least I damn well hope Wine doesn't implement some windows keylogger API just for that.