Right-click enter problem

I'm having problems with the mouse right-click enter option.  It doesn't seem to work when using keystroke quick commands.  For instance, if I want to draw a line, I want to hit letter "L" and right click to execute the command.  This does not work.  Right click will always bring up the last command performed.  Only hitting the "enter" key will get the results I'm looking for.  I've changed the mouse options in the user preferences, and nothing helps to get the behavior I'm looking for.  Any suggestions?