Can I use a programmable gaming mouse for modelling
There is no problem, just press the mouse button when setting up the shortcut and Blender will recognize it as Button5 Mouse for example.

You can also set the mouse keys in most mouse management software to act like Ctrl, Alt, etc.

Lastly check if there are good drivers for your gaming mouse if you are on Linux or MacOS.