Lock Selection toggles the ability to highlight keys in Track View. When Lock Selection is on you can't inadvertently deselect highlighted keys or select other keys. When a selection is locked you can move or scale keys by dragging anywhere in the window, not just on a highlighted key.
To use Lock Selection in Track View:
All selected keys move regardless of where inside the Track View Key window you click and drag.