improve ssh key input handling