Move key pair dialog to distinct file.