When you press a key while the cursor is over a unit frame, the unit frame doesn't intercept the key press the way it intercepts mouse clicks. This is why your macro would work as expected if bound to a regular key, but doesn't work as expected when bound to a mouse button. As o...