Hi I had the same problem, the power button stopped working, but found the following worked.
Press and hold the volume down button.
While holding the button, plug the Galaxy S5 to a PC using your USB cable.
Continue holding the volume down button until your Smartphone boots to ‘Download Mode’...