Which hardware buttons are present?

Hi there,

is there a method to ask what hardware buttons the device has? There are devices that have no buttons except the power and volume buttons. I want to know, if a device has the back button as a hardware button.

I don’t want to change the event handler for the hardware back button. I just want to know if it is there on the device.

How to do that?

Has anyone any clues?