I use damage objects, as in, an object that is invisible, and destroys itself a second or so after creation, and when an enemy collides with it, it does damage, or just kills them. So it would be something like "press __ key", "create obj_damage", and for an enemy collision, "collision with obj_damage=destroy_instance self". I could find the actual code for this, as I always just use DnD.