key codes almost perfect