Please help!
My Windows 10 (laptop) turns off and after about 2 minutes it turns on again and that happens when I press any keyboard.
Do a rest: Take the PC from the mains, then remove the battery, wait 2 minutes and connect the battery to the power line, then the problem should be resolved.
In principle, the "Event Viewer" is very interesting for something like that, if you can open it.
It may work better in safe mode.