I hear your pain my friend.
I also tried like you to bind the buttons to keys and for a while btnx was THE solution.
Then Ubuntu change the xorg or whatever is responsible for input and I think that broke btnx.
After that I switched to xmacrokeys and xbindkeys to do the mapping.
At some point, I started using easystroke and stopped binding mouse keys altogether.