Enable keyframe locking and fixed delete keyframe issue