Global shortcuts for app specific commands

I want to remap my numpad to send different key strokes to a specific application only, whether its in focus or not. How can this be done? Ive tried selecting the app from the left panel, but the keystroke doesnt work when the app is out of focus.