Ability to add "Key Pressed" macroses for certain application

It will be great, if application has an Ability to add “Key Pressed” macroses for specific application only, similar to how “foreground app match” for lightening works.