Customize Mouse buttons

I have a dell mouse with 2 extra buttons on the side typically used for forward/back on web pages (I think).   Is there a way to customize these to function as "OK / cancel" (like the confirmation corner) in Solidworks.  I would also like it if they would function as exit "sketch / cancel sketch"  I had a previous logitech mouse that I could assign keystrokes to the buttons, but was unable to find the correct solidworks keystrokes to act like I wanted all the time.

Thanks!

SolidworksUser Interface