fix key code