copy the scripts to modify them to suit your project. these scripts serve the purpose of a 'when stop pressed' block.
this is mine.