Rearrange keys.