How can I catch alt f4 key in ue5?

According to this post, it can be done: