Release key A when B is pressed?

By default you can press all keys and they will all trigger simultaneously.
What if you have WASD controls, and you wanted A to always release D, and viceversa?

What about using some enum variable and a switch for behavior keys like this?

image

image

Yes that would work, but I was hoping Enhanced Input had something built-in… seems like such a fundamental thing