Trigger an action with volume down button

Hi

I’ve an app for barcode scanning. When user click Add button camera opens up and scan the barcode, This “add” button can trigger with volume down button on phone ?

Thanks

Unfortunately the app doesn’t have control for other device buttons.