Pressing [Enter] will close the Dialog.
Added and edited some comments.