React on mouse click to stop clock for hardware integration