A few weeks ago my laptop shut down and then it wouldn't start back up. I went back to it a few days later and it started but shut back down after an hour. Then the keyboard stopped working.
Replace the keyboard, I've seen those cause issues with booting cheapest thing to try. If that does not work, your power supply, battery or system board is bad.