[incremental search] adding fix for handleKeyboard from @nightwing
[incremental search] fix for space
remove debug code