Personally, I like to avoid the "capture everything" forms in lambdas...  You need keyName, so just capture [&keyName] >.>