Can i get some help on adding a right click option/attack to a weapon please

basically im making a weapon mod and i want to have the regular swing attack for the left click but for the right click i want to add a different animation/attack i know its possible i just need help making the right click on the mouse work then i can figure it out from there if anyone can help me with this =)