I see do you have those input mapping mapped in the character already?
Here is the documentation how basic inputs works in unreal.
If you have that already working.
You can have an input action event in the widget or in the character and pass it to the widget instances.
Here a video using the last case: