Default Hardware key remapping

Is there any way to remap the HW Keys?
VolUp short press as back key long press volume up and VolDown as home key for example?

Edit: Solved the problem by using Xposed with Xposed Additions

Thread can be closed