How can you sense when phone button is clicked?

This extension can detect change in volume settings. So can be used to detect Volume button press.


Apart from this App Inventor has inbuilt block to detect Back Press button click.