How to shoot projectile?

How do I make my character able to shoot a projectile to be able to attack enemies?

Go into behaviors and make it so that when you press a key, the player emits and object. The key should be in Triggers and the emit behavior should be in Components.

Any questions, just let me know!