Control light with volume buttons?

I have a spot light in my scene and I want to control it with the volume buttons on android smartphones, but I don’t know how to do this. If somebody knows how to do this, please answer.

Thank you