Algorithm implemented for partially translated keys