Lock and Unlock Objects (For Mac users) in Adobe Illustrator
Cmd + 2 = Lock selected object(s)
Cmd + Opt + Shift + 2 = Lock all deselected objects
Cmd + Opt + 2 = Unlock all

If you are using a PC, please replace as below:

Cmd key = Ctrl key

Opt = Alt.