Use .close() intead of .hide() in 'esc' key press