# How do I toggle sound when I press a key?

**URL:** <https://forums.unrealengine.com/t/how-do-i-toggle-sound-when-i-press-a-key/418397>\
**Category:** Audio\
**Tags:** toggle, unreal-engine, play, question, Blueprint\
**Created:** [February 26, 2018, 6:43pm UTC](https://forums.unrealengine.com/t/how-do-i-toggle-sound-when-i-press-a-key/418397 "2018-02-26T18:43:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Quentin\_Hart](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quentin\_Hart](https://forums.unrealengine.com/u/Quentin_Hart)\
**Post date:** [February 26, 2018, 6:43pm UTC](https://forums.unrealengine.com/t/how-do-i-toggle-sound-when-i-press-a-key/418397/1 "2018-02-26T18:43:41Z")

</div>

Okay, so im making a first person game, and you use a flashlight to navigate around. I figured out how to toggle the light on and off (f) but can’t seem to play a clicking sound when I press f. I’m a complete noob to unreal engine so if you have a solution to toggle the sound you may have to dumb it down step by step for me.

---

<div class="post-metadata">

**Author:** ![callfreak](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@callfreak](https://forums.unrealengine.com/u/callfreak)\
**Post date:** [February 26, 2018, 7:12pm UTC](https://forums.unrealengine.com/t/how-do-i-toggle-sound-when-i-press-a-key/418397/2 "2018-02-26T19:12:42Z")

</div>

![232091-unbenannt.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/d/2/7d2a047429c4da07bcf30ff83f47287f8aa28936.jpeg)

Simple “ **Play Sound 2D** ” or “ **Play Sound At Location** ”  
Plays everytime you press **F**
