Fix bug where iTermSearchField would capture arrow key presses even when it wasn't key. Became an issue first with the command history tool. Fixes bug 2865.
cited from http://d.hatena.ne.jp/mrkn/20101031/1288487978