How to map an extra mouse button to ctrl z?
What you need is your mouse's software installed. For example, Logitech has its own software for its peripherals like keyboard, mouse.
Once installed, open up the program, and set your extra key as CTRL+Z