Chosen Solution
After 2 years of usage my laptop was powering randomly and after 1 month of this the power button got stuck. My laptop is a Lenovo Legion Y520-15IKBN upgraded with an ssd after 1 year after i bought it. At the moment i’m using the recovery/service button on the side of the laptop. I can provide aditional information if needed.
@strikerrosv the power button is soldered to the motherboard.
So, the trouble here would be to find a replacement. Of course, you would also need to know how to solder and have the tools for it. Can it be done? Yes, but it will require the complete disassembly, sourcing a replacement power button and then some soldering.