This is how you do it in C3, but remember, you have to turn on the C3 Runtime which is disabled on deafult, it is an experimental version of Construct 3 and ads a set of features, which the normal Construct 3 version does not have. I used an mp3 in the project for the sound, because I was too lazy to convert it, but always use .ogg becuase it is a lot smaller in size, if you didn't know already of course.
Here's the project, all ready to go:
ufile.io/2yl55
Here you can find how you can enable the Construct 3 Runtime in your project.
construct.net/blogs/construct-official-blog-1/c3-runtime-alpha-now-available-950