With Xposed Addition modules for Xposed Framework you can add extra functions to your hardware buttons
For example:
-Long press volume keys to change music (previous / next)
-Hold camera key to pause media
-Or enable rotation by pressing power button
-Much much more combinations:
-You can assign up to 6 different actions per key in each screen state (12 actions total)
-Tasks you can assign:
-Open camera -Camera focus
-Power -Power menu -Recent Apps
-Home -Menu -Back -Search
-Call & End Call -Volume Up/down
-Media play/pause/next/previous
-Page up/down -Zoom in/out
-Kill foreground app -Orientation toggle
-Plus you can control USB Plug/UnPlug behavior and Application orientation behavior.
-Requirements:
- Xposed framework:
Download from HERE, install, then install/update framework
Go HERE If you are on gingerbread
-Installation:
1- Download Xposed Additions main app from THIS DIRECT LINK or from Play store
2- Enable module from Xposed Framework application
3- Reboot
4- Install Xposed Additions Pro extension for more features from HERE or from Play store
5- Install the APK then enjoy full features of Xposed Additions Pro
Play with your button mappings til it suits your needs