And for god's sake, just use NORMAL editing functionality. Arrow keys to move around, ctrl-a to select everything, home and end to go to the beginning and end, drag select to select part of the text so you can *replace* it while typing.....
And stop screwing up the input box whenever the list of whatever you're searching refreshes