# How do I recognize with actionscript when a key is released?

**URL:** <https://forum.kirupa.com/t/how-do-i-recognize-with-actionscript-when-a-key-is-released/298609>\
**Category:** flash\
**Created:** [October 21, 2009, 9:01pm UTC](https://forum.kirupa.com/t/how-do-i-recognize-with-actionscript-when-a-key-is-released/298609 "2009-10-21T21:01:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jumpsuit1](https://avatars.discourse-cdn.com/v4/letter/j/65b543/32.png) [@jumpsuit1](https://forum.kirupa.com/u/jumpsuit1)\
**Post date:** [October 21, 2009, 9:01pm UTC](https://forum.kirupa.com/t/how-do-i-recognize-with-actionscript-when-a-key-is-released/298609/1 "2009-10-21T21:01:30Z")

</div>

There is a button release command but I can’t find one for key release. I am building a slider which is operated by pressing and holding a key. I am using the setInterval function but I need to cancel as soon as the key is released, anyone have an idea?
