Terminating a command with right mouse click

I'm new to Solidworks. Right now when I am done with a command I have to right click and then click on select.

For example, if I am in the line command and have finished drawing various lines I have to right click, then click on select or I will have to keep drawing lines.

I would like to have it set up so that when I right click the command is terminated. It would be even better if I could

also use the space bar to terminate the command as well.

Thanks

Rick

SolidworksParts And Features