Before using you widget you need to make sure that it is configured correctly so that it can accept user inputs, to do that, go into the code Graph

then open the Class Defaults in the toolbar above

now in the Details panel search for Is Focusable, you’ll find it under the Interaction category, just make sure it is checked.
