How can I make 1 key input work in two different ways?

How about:

EDIT: Looking at this further though, isn’t it enough just to have a couple of normal widgets for this?

I mean, it’s just you unload the first widget, load the second, the unload the second and load the first?