sorted key codes