# Attaching Sound to Keypress

**URL:** <https://forum.kirupa.com/t/attaching-sound-to-keypress/121643>\
**Category:** Uncategorized\
**Created:** [September 4, 2004, 11:57pm UTC](https://forum.kirupa.com/t/attaching-sound-to-keypress/121643 "2004-09-04T23:57:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ironzionmarley](https://avatars.discourse-cdn.com/v4/letter/i/6a8cbe/32.png) [@ironzionmarley](https://forum.kirupa.com/u/ironzionmarley)\
**Post date:** [September 4, 2004, 11:57pm UTC](https://forum.kirupa.com/t/attaching-sound-to-keypress/121643/1 "2004-09-04T23:57:05Z")

</div>

Hi, making a drum simulator in Flash MX, how the hell do I attach a sound to a key press. You would think it would be as simple as, " On KeyPress(whatverekey) play sound", but I cant seem to figure out. An help will be appreciated. (By the way, I want to attach the sound “highhat\_closed” to keypress \<Page Up\>, \<Home\>, and \<Insert\>)
