Before Mac High Sierra came out, there was no Mac keyboard shortcut to quickly lock your Mac.
Since High Sierra, now all you have to now is: CMD + CTRL + Q and your computer will immediately lock.
Every time you can save a step or two doing stuff on your computer is a good time!