Detect keypress on Avermedia device

I have an Avermedia C875 device (which has a button to start recording).

I want to know if there is a way to get that event of when that button is pressed because I need to do other procedures when the device has started recording.

I have been searching but there are only options only if keys are pressed but from a keyboard.

I am working with Js and PHP, but if there is a solution in any other language I am open to investigate.