How can i add a Windows Message Handler class to my project?

Hi all, I want to use this player controller in my project. But i can’t figure out how to add or create that Windows Message Handler class.
Any help would be appreciated…

Does this help? Hooking into the Windows message queue in UE4

Yes, thanks a lot!