Improve auth popup to support enter/escape