you can do

on (release) {
play ();
}

and

on (release) {
stop ();
}