Ctrl+2 is the default in Illustrator, locks selected item(s) in place. Ctrl+Shift+2 unlocks all.
Another option: Add another lock in the Layers window, this lock blocks the entire layer from moving.
Develop games in your browser. Powerful, performant & highly capable.