Thank you, I found a workaround creattyng an empty and using the "UI Set Selected Game Object" action to select it, so the selected button gets deselected.
I think it is a similar solution than the one that you suggest? I don't know if there is a more straightforward way to do what you said, I havent found any action to set a Gameobject to null.