Interjections are words or phrases that express strong emotion or sudden feeling. They are often used to get attention, indicate surprise, or express agreement or disagreement.
In the case of "ahem," it typically signals a pause for attention or indicates a slight cough.