Due to the limitation of Scratch's sensor block and image caching mechanism, the detector can only detect the state when the project is loaded but not during runtime. The page need to be refeshed to reflect the change. Some browsers have not yet supported this feature.