Did you mean something like this?
const doThing = event => {
input.value = event.value;
input.focus();
sound.play();
}
button.onclick = doThing