Chosen Solution

I’ve replaced battery and installed new hard drive on MBP mid-2010, model A1278. Alas, still have same problem. Once desktop opens, unless I’m holding down Command key, computer shuts down. Is this a logic board problem? Seems like that’s the only component left. And, if so, is there an easy fix? Also, are there any alternatives to 820-2879 (e.g., 820-2877)? The only reason I was rehabilitating this device was to give it to my niece, but now it’s getting costly. Any advice appreciated.

I’ve never heard of just holding down the Command key by itself. Here are the keyboard options you can try: https://support.apple.com/en-ca/HT201255 What was it doing before you started making repairs?