For existing widgets
If you want your widget to handle user inputs you need to make you widget to inherit from WBP_GenericInputHandler, to do it you need to open your widget, then go into the code Graph, which you’ll find it near the upper right corner

then open the Class Settings in the toolbar above

then in the Details panel you will find the Parent Class field, here just assign the widget WBP_GenericInputManager.

For new widgets
To create a new widget already with the right class you just need to Right Click in the Content Browser and select Blueprint Class

In the popup that will appear type in the search bar inside the ‘All Classes’ section WBP_GenericInputHandler, select the right class and click the Select button in the bottom right corner

You will find the new asset in the Content Browser and you can give it the name you want
