Thanks for the suggestions and personal tips. I have customized my keyboard for the functions I have always wanted and now it is possible thanks to HID.
I will try to apply the scripts that commented, sorry to me being too little. But I'll tell you the results soon!
Report application bugs here