final TextField password = new TextField("password" );
password.setPassword(true);
pop.addAttribute(messages.Password(), password);
KeyListener kl = new KeyListener() {
public void onKey(int key, EventObject e) {
if (key == KeyboardListener.KEY_ENTER) {
doLogin(userName, password, pop);
}