Change middle mouse button to another key

Hi, i did some research and couldn’t find any option in the Editor Preferences to change the middle mouse button to another hotkey, i would enjoy change it to my mouse5 button to make the measuring tool more easy to use. Could some have any idea how? Thanks!