Chosen Solution
My mac book won’t boot up after shutdown for long periods. The service guy told the issue is with keyboard and replaced the keyboard. But the issue is not yet resolved, it works sometimes and it won’t boot up first time in the morning after being shut down for more than 5/6 hrs.
I would recommend trying a trackpad cable (£10), if the trackpad is not recognised on the 13" 2015 models, the keyboard will not work at all. On this model in particular, I have seen a lot where the cable intermittently fails (keyboard and trackpad sometimes works, sometimes doesn’t) and it sounds like the periods where you can’t boot is where the trackpad cable is acting up. I have seen these with your exact issue, ones where it will randomly act up whilst switched on or when sleeping/waking. It’s a cheap part, try that first, then I would recommend taking it to a repairer who will have the test parts available, so they can easily diagnose this properly.
What does the MagSafe LED tell you? Is it Green or Amber? Dim or bright? Review this Apple T/N: Apple Portables: Troubleshooting MagSafe adapters. It maybe your contacts are dirty or damaged. Update (03/24/2017) I think its time to pull the bottom cover off and using something to short across the power pads to see if the issue is within the keyboard’s power switch. Here’s an image of the power pads marked in Green circle:
See if using them instead is more stable than the button.
Sounds like it could be a corrupted Directory. I would need to hear more about it to verify that though. I would try running Disk Warrior on it to see if you can repair the Directory. If that doesn’t work it could be a reinstall of the OS.
I know this is an old thread, but the exact same thing is happening to my MacBook - same model. Even shorting the pads works once in a while. Did you ever figure out what caused your issue?