Can we use hard buttons(like volume and
power buttons) in Android app??

If yes , then how?
 I want to use volume down button to perform
some function in my app.