revert key codec