Usually Command + P is the keyboard shortcut to print. If it's not, you can add your own keyboard shortcut. You shouldn't need any additional apps to do this. It's built right into the Mac.
Go to System Preferences -> Keyboard. Select Keyboard Shortcuts. At the bottom, click the + button to add a new keyboard shortcut. To add a keyboard shortcut to a specific application, select it from the Application dropdown menu. Enter the name of the command exactly as it appears in the menu (In this case it may simply be "print").
Additional cool trick
If you don't always feel like setting a keyboard shortcut: You can use Command + ? to bring up the Search menu from within the application itself. Start typing in the name of the command you'd like to select. Once you have enough characters, the menu item should be highlighted. Hit Return and it will select that menu item. Instant keyboard shortcut!
**EDIT**
Since you specified that this issue is about Komodo Edit there's some good news and bad news:
The bad news:
Komodo Edit, like Firefox, is built using XUL. Many XUL applications have an ongoing bug when it comes to respecting keyboard shortcuts set from System Preferences on the Mac. Namely, they don't. (If anyone has any solutions or comments about this please let me know)
The good news:
Komodo Edit lets you set your own keyboard shortcuts from within the application! Go to Preferences -> Editor -> Key Bindings, search "Commands" for "Print", select it, and assign whatever keyboard shortcut you like.
For compressing i found simple solution.
I'm using OS X Yosemite 10.10.2 and It's worked for me.
Open system preferences and follow the screenshots:
--> Step1:
--> Step2:
--> Step3:
--> Step4(It's Done):
That's It.
I know it's been long time since you asked the Question but i'm posting the answers for those who are still looking for solution.
Best Answer
nohillside gave me a good hint and deserves credit for this answer. On a Mac when using F functions shortcuts where two different items are on that key, you have to use the "fn" key first at the left-hand bottom of your Apple keyboard. If the the F function key has only one item, then you can use it directly without the "fn" in front.
Thus, on my own Apple keyboard (and I suspect yours is the same), you don't have to hit fn before F5 or F6. But, you have to use fn in front of all the others.
Attempting to resolve this issue through the Preference -> Keyboard path just did not work at all for me, no matter what I tried. And, I tried a lot of different things.
nohillside had uncovered another way to attempt to resolve this issue from a GitHub reference. It seemed incredibly complicated and very invasive suggesting you modify numerous of your Python packages. That seemed somewhat dangerous. And, I am just sticking to the fn solution when typing F9. That's easy enough, and not that tasking.