Set key codes once