input from one controller on multiple UI widgets

I am trying to create a menu system for my unreal game. I am using a player controller to send input to the UI Widgets. This is an image of what I want to do:

I have managed to do this using a string of ‘Cast’ nodes. Can be seen here:

I was wondering if there is a way I could do this without the need to create a large string of cast nodes. It is fine at the moment however when I start adding additional menus this will not be a viable solution. I have also considered using an enum and switch, however, would prefer to do it in just 1 cast node

to call functions on a variety of unknown objects, you can use a blueprint interface. each widget can implement the interface in its class settings, then your menu controller can call those interface functions on its CurrentMenu object reference.