Mac Screen Sharing

I have Keyboard Maestro installed on both my Home iMac and my Work iMac and KM works well ... when I'm in front of either computer. But when I work from my Home iMac, using Mac Screen Sharing to control my Work iMac, KM doesn't work on my Work iMac. Any suggestions on how to make this work?

What application do you use to screenshare? I think this has to do with handling keyboard input in that app

I use the application "Screen Sharing"; included in the MacOS.Screen%20Sharing

That might be the issue. I'm not sure if that catches the input locally.
You could test that by trying a trail version of screens or something similar.