You mouse over the thing you want the action to work on, and then hit the keybind for that action. For example, if I want to cure someone with /ac Cure <mo>, I mouse over their frame in the party list and hit 4 (my keybind for that macro). Could also mouse over their 3D character model or the nameplate/health bar over their head if you can catch them in time.