Chosen Solution

Whenever I close the lid on my computer some of my keys stop working. For example the E, R, O, CMD and others. What confuses me is that if I squeeze the keys really hard (like smashing them with all my strength) they work sometimes. Has anyone else experienced this problem? Does this mean I should replace my keyboard? I don’t mind replacing the keyboard since I’m good at fixing electronics but just want to make sure its not a software issue. Because eventually they start working perfectly after a while of trying (like 5 min) to smash them until the computer goes to sleep.

Open your System Preferences > Keyboard. In the first tab ‘Keyboard’ check off ‘Show keyboard and emoji views in menu bar’. Now close System Preferences, you should see a flag in your menu bar and if you click on it you’ll gain access to the ‘Show Keyboard Viewer’ open it up and now you can verify your keyboard presses. If it doesn’t show up then the key switch has failed within the keyboard. I often find liquid spills even ones years ago have finally corroded the circuit board and the switch elements. Here’s the guide you’ll need to follow MacBook Pro 13" Retina Display Early 2015 Upper Case Replacement. Depending on your skills you can just go with replacing the upper case while expensive is the easiest way. If you have the skills you can replace the keyboard alone, Often the battery also needs replacing so before you take anything apart run this gem of an app to see how your battery looks CoconutBattery If you’re over 750 cycles it makes sense replacing the battery. Also look at the design capacity if you are below 90% this also points to a battery thats in trouble. Here’s one source for the bare keyboard Alibaba - High Quality laptop with US keyboard for Apple MacBook Pro 13" Retina A1502 US keyboard 2013-2015. You’ll still need to get the needed screws to replace the rivets.