# Keypress to function

**URL:** <https://forum.kirupa.com/t/keypress-to-function/299192>\
**Category:** flash\
**Created:** [October 31, 2009, 11:29am UTC](https://forum.kirupa.com/t/keypress-to-function/299192 "2009-10-31T11:29:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_da\_best](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@Matt\_da\_best](https://forum.kirupa.com/u/Matt_da_best)\
**Post date:** [October 31, 2009, 11:29am UTC](https://forum.kirupa.com/t/keypress-to-function/299192/1 "2009-10-31T11:29:22Z")

</div>

I know this sounds really simple, but is there any way I can implement a key press to a function, I know this is wrong, but you’ve got an idea then:

butmute.keyPress(“m”) = function {

Thanks

MDB
