Open the developer console
Enter `bind mouse2 +duck`
Press Enter
If Mouse 2 is already bound to another action, it will be replaced
Open the developer console
Enter `bind mouse2 +duck`
Press Enter
If Mouse 2 is already bound to another action, it will be replaced