Mapped password field Enter/ESC to buttons

as wished in #4869.