Add a method for intercepting the volume keys and optimization logic

...ation logic