How to detect pause and unpause event?

Yea, an event listener should do the trick but I don’t know how. Googling for Unreal event listener gives me only results for dispatcher, though I’m new to unreal scripting so I really hope you have some advice for me.