Makes escape key close the select