Set shortcut to use 3DConnexion SpaceMouse button?
Try editing the keymap in &#9096; Ctrl&#9095; AltU> User preferences > Input.

To change a shortcut, click the button with the current shortcut and press the new shortcut. Pressing a mouse button works for me: