Sorry Jason, i have made a mistake as i have reused your script and didn't look into the proper atributes. I just wanted to point out, that if you from some reason want to have it in one line, you can with syntax i have written, so e.g. this
var keywordsIterator = AdWordsApp.campaigns().withCondition("Status = ENABLED").get().next().keywords().withCondition("QualityScore >= 6").get()
should give you iterator over all keywords with quality score 6 and higher from Enabled Campaigns only.
Or you can do at the beggining of your function something like
var myCampaigns = AdWordsApp.campaigns().withCondition("Status = ENABLED").get().next()
and then if you need adGroups or Keywords just from Enabled campaigns, you will do e.g.
var keywordsIterator = myCampaigns.keywords().withCondition("QualityScore >= 6").get()
(i home i am right, you must try it ;)