Emulating keyboard + media keys

Hi,

I want to implement not only regular keyboard() functionality but media keys (volume up, mute...) as well.
I found library that works with media keys: "HID-master". It has regular keys functionality as well, but not as good as built in keyboard(). What comes to regular keys I prefer default keyboard library, but I can't use them together, I can probably strip out all unnecessary stuff from "HID-master" library and only leave media functionality, but I have a feeling that it's not that easy to make them work together...
Maybe someone can suggest easier solution then merging these two libraries?

I'm not noob at coding, but I'm not that familiar with USB stuff.

P.S. I'm using 32U4 MCU (Leonardo)

Take a look at the Teensy3/LC USB keyboard library. It includes media keys.

I just extracted media keys code from entire library, it seems to work.