macos – Problem of ShareMouse with the keyboard in MAC and Windows

I am using ShareMouse to share my mouse and keyboard in iMac and Windows PC, however, I have them connected to the Windows PC because the keyboard does not seem to work when connected to the iMac.

The only problem when executing this configuration is that my keyboard design is QWERTY Portugal and the characters <> in the iMac go to a strange position, this seems to be a small problem, but I develop in XML in the iMac and it gets frustrated after a time. Is there anything that can be done to help correct the codes?