programme the buttons to do any particular command unless it involves either CONTROL, OPTION, or COMMAND key. I suppose if you programme one of the buttons to do an APPLE-W this will be equivalent to the keyboard stroke.
I use the command ALT-click for one of the side buttons and that hides the application when clicking on the desktop.