Keuchel gives up his first 1st inning run. If the pitcher makes the error that put the scoring run on base is it unearned?
Just to comment...the way to think about it is to reconstruct the inning without the error. If the run still scores, it's earned. If the run doesn't score without the benefit of the error, it's unearned. So by default, any runner who reaches base on an error cannot be earned. Any run that scores after an inning is prolonged by an error cannot be earned. That's the way official scorers are told to approach it.
There is sometimes a misconception that if the error was on the pitcher, it's still an earned run. But you have to think of earned runs as an offensive stat, not a defensive or pitching one. If the offensive team didn't "earn it", it's an unearned run, regardless of who committed the error.