OK, never mind, I just found the solution. Instead of using the Windows control panel, I switched the mouse buttons with the Razer software. Everything works fine in game now.
It's a strange problem (I never had problems with my mouse before) but well... I can finally play KB normally.