decode key