Added some codes to allow keyboard enter to trigger search