Subscribes to the specified event and calls the callback function when the event fires.
The event name.
Function to be called when the event fires.