Record your starting volume
Enter volume without an argument and note the value. Check your chosen key, for example with bind F7, and save its existing action before replacing it.
Bind two levels
As an example, enter bind "F7" "toggle volume 0.2 0.5". Each press switches between those values. Compare both in practice and substitute levels that suit you. Main volume changes game sounds together, so check footstep audibility too.
Restore your setup
Enter volume with the value you saved. Restore F7’s previous binding, or use unbind F7 if it was free. If the binding returns at launch, remove it from the saved CFG.