If you like, you could setup two different power plans. One with sleep disabled, and one with sleep enabled. Afterwards, you could use the tutorial below to create shortcuts that you could place where you like to toggle between power plans to use for this.
Power Plan - Create Shortcut to Change Power Plan
Hope this helps,