Return to command mode when cancelling a search entry.
Improve search behaviour, especially with wrapping.