fix ctrl bug during reverse search

In the original code in win32, when you press ctrl(before press any other key)during reverse search,  you will directly exit search and return current match patter. This behavior is not correct.