Can I change the hardware button mapping with CM9 (Samsung Galaxy S2)?
With ButtonRemapper you can remap certain keys, but long press is currently not supported. It might be implemented in the future though, I suggest you follow the topic: http://forum.xda-developers.com/showthread.php?t=850464