The behavior of mouse buttons can be changed by selecting a custom behavior in the Mouse Buttons tab. The behavior of several buttons can be changed at once by selecting the buttons to change, then selecting a custom behavior for any one of them.
The entry for a particular button can be found by enabling the Highlight active controls checkbox, then pressing the desired button on the mouse.