restore keys from prefs when app is launched

Restore key fields when app is launched same as protocol and IP fields.