Function findNodesForKeywordInternal