Who can help me write a extension that can monitoring button of earphone

I need a extension can get the keycode, event time and changes of inline control earphone /bluetooth buttons
but I am poor at JAVA
who can ?

I am working on a extension that listen for key pushes. I will add this too


sounds cool , hope you post your extensions to us all ASAP:hamburger:


hi I am also looking for an extension that allows me to manage the button of the earphones, so to put the blocks of my interest but I can not find anything that can solve the problem