Implement key generation UI.
Clean code.
Initialize the KeyStore on startup