How not rebind the same key?

Hello, i have my UI rebind buttons and i want that, for example, the button for “jump” is space bar, and the button for “attack” is c, works, but i want that if i press the same key that “jump” or vice-versa, the rebind is canceled, any help?
Edit: i am using the NewInputSystem and i am using PerformInteractiveRrbind()

Any help?

:frowning: