fix nullpointer in EditKeyActivity