Close search panel when Esc is pressed