Custom Mouse Key Clicks

In AutoCAD, there is a pretty easy way to set the right click to end commands or go to the selection tool would be the equivalent for ORD. Is there a way to customize the Right click or both buttons at once or even pushing down on the scroll wheel to default to the selection tool and end your current command?