Aggiungi un KeyListener al textfield della password e rileva il tasto invio.