Rename decode to decodeKey