or pass $this->keyword to your sublayout
echo shopFunctionsF::renderVmSubLayout($this->productsLayout,array('products'=>$products,'currency'=>$this->currency,'products_per_row'=>$this->perRow,'showRating'=>$this->showRating,'keyword'=>$this->keyword));
and at the other end
$keyword = $viewData['keyword'];
might work