Eagle and mouse center click

Hello, the center click of my mouse don’t work anymore… I need it in Eagle to quickly mirror object and, more importantly, to switch layers while routing.

Is there a way to map the center click to a key on the keyboard?

If you have a keyboard that supports macros, you can…