Almost solved it myself. The solution was to install MTCD_Tools. With this app, I was able to figure out that I had to remap key code 299->281 and 300->273 With this info I found a way to remap in the settings of the Hal9k Mod firmware.
I still don't know how to remap long press on the volume...