Question Screen went out then computer turned off

Nov 24, 2018
3
0
10
Yesterday my screen went black and then, 1-3 seconds later my computer shut down. It didn't turn on after that so I left it to cool down a bit. Today I tried to turn it back on, no luck, after that I removed GPU because I had some problems with this model, in the past and in the present. And it turned on this time, but it turned off after 2secs, I turned it again, it turned on for longer, but died again. Same was for third time, but now on fourth it seems to be running well. I really don't know what happened. Anyone know something about it? Oh, and my old but still very nice ps/2 type keyboard doesn't seem to work, for some reason, it flashes its light when you plug the connector but that's it.