Thank you for your input, that seems to work better than what I have. I originally use ButtonGroup parameter in inspector:
which is why I used var group = buttonName.group instead to get group instead of make a new one. I assume those work the same.
Anyways I seem to have come across one more issue. I have two buttons:
One must always be on so I need to use toggle mode. With toggle mode on, your example script prints multiple outputs. Like 3 separate strings at once ...
So I try to use toggle signal instead.

Now the issue here is since I have two button, I don't want to write code twice so I write custom function. So I try this:
But when I try this I get random outputs on button press. Sometimes "1" ... sometimes "2" ...
I assume issue is with toggle mode but I see no other option in docs.