Check onHardwareBackButton