Tank control on the keyboard and gamepad

I saw that you can assign binoculars and artillery to one button on the gamepad, for example, and something like an armament selector appears and the keys do not conflict. So is it possible to do something like this on the keyboard or is it just for consoles?

You can just press “Add”, depending on the bind, will mostly work as normal or conflict with some other action. I think on gamepad is easier to use more than a button due to the accessibility than on keyboard.