I would recommend using the enhanced input plugin for this, since it also allows way easier key remapping and multiple keymapping profiles.
Regardless, Key Events are one of the many functions that dont work in widget blueprints by default.
The way I deal with this is to recognize those types of events in a player controller blueprint and have that communicate with the Widgets that need to receive that information.