Small bug fix in the set-keylock function