Hi Francisco,
If I understand you correctly, you would like to get the button pressed event but you want to skip the action to the audio state associated with this event. As soon as the button is pressed, the audio state change happens at the firmware level within the device, before the button press event is dispatched to the PC.
I think what you can do is to check the audio state AFTER you received the event, and if the audio state is not what you desire, send a command to set the audio state to what you need, Would this solve your problem?
Wei