COR : correcting a key code