Improve public and private key input.