You don't HAVE to use a command for right click, but you can.
I like doing it, so I can switch to another command interface (like a coin interface) if I want to.
In the mouse properties set an action for rightclick.
There you need to save the current object, set your look command, execute the command, then set a little pause and then set your standard command and clear the saved object.
This is wraped in an if query to check if there is an object beneath the cursor, so it only get's executed when there is something to execute on. ;-)