Is there a way to detect right and left-click with any one-handed item?

I'd like to learn how to do this: https://www.youtube.com/watch?v=nQOTOh9yIVY Right and left clicks are displayed on the action bar.
Continue to help post