add close with esc key