By default out of the box, autocad is setup to have the right mouse button display a pop up menu. This is kind of annoying for any one who has used autocad for a while and use to have the right mouse button set to enter (or end the command). If your trying to end the command with a right mouse button click and its not working watch this video.