search-exit-option

search-exit-option is a variable defined in `isearch.el'.
Its value is
t


Documentation:
Non-nil means random control characters terminate incremental search.

You can customize this variable.