The attached macroscript gives various options for modifying existing keys (any/multiple tracks) to be lock keys - as well as creating lock keys for pos - rot and scale.
This can be a big time saver for character animation - especially for setting up feet plants and keeping them locked for set durations.