fixed broken keypress event handling in user search form

refs RM issue 2688