You will want to hit the windows key on your keyboard, type "power" and select "edit the power plan"
Then click change advanced settings and go through all the drop down lists and edit them as you desire. If you want something not to turn off after a set time, put 0 (minutes) in the box.