Plug [Q] Reppaping Menu Button

I would like to remap the capacitive menu button to the recent apps switcher (default long press of the home button)
and then remap the LONG press of the menu button to the menu function (I need the ability to use the menu button when within the stock samsung apps like messaging, because they use fixed layouts and their apps are designed without the menu overflow.)

also my question is would apps still detect the phone as having a hardware menu button? I would like to be able to have apps have the menu button and not rely on the hardware.

then maybe since I would no longer need the home button long press possibly remap that to kill the current app? (that is not as important but just a side note)

I have looked EVERYWHERE and can not find a viable way to do this on the stock rom. thanks

i-545 gs4 vzw
Mk2 4.3 using stock rom, xposed framework installed, and Root access.