How to press button to play a sound, then release button to play a new sound, but stop the previous sound while playing

When I press a button I need a sound to play, when released I need a second sound to play, but to cancel the previous sound that was pressed if still playing (and not finished).