Fix key code