Single Keyboard Maestro keyboard macro, but different action depending on active application?
A fairly simple solution: if-then-else actions. See this one for Finder:


If you nest each application-specific action within an If statement that checks whether the relevant app is at the front, it should work.