Fix a key entry bug in the decryption key dialog. Remove some unused /