keys loop in searching words loop.