Well, searching the forum shows that there are problems with the recognition of the Magic Trackpad and Magic Mouse. One poster recommends to trigger the KM macro with BTT:
If this doesn’t introduce unbearable delays and if BTT has a release trigger, then this could indeed work.