There's a command line guide at https://www.linuxuprising.com/2019/11/how-to-bind-mouse-buttons-to-keyboard.html - but I don't know of an all-in-one tool to do it.