# Detect when a key was pressed - impossible?!

**URL:** https://forum.kirupa.com/t/detect-when-a-key-was-pressed-impossible/313887
**Category:** flash
**Created:** [September 13, 2010, 5:17am UTC](https://forum.kirupa.com/t/detect-when-a-key-was-pressed-impossible/313887 "2010-09-13T05:17:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![masterLaser](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@masterLaser](https://forum.kirupa.com/u/masterLaser)
#### Post date: [September 13, 2010, 5:17am UTC](https://forum.kirupa.com/t/detect-when-a-key-was-pressed-impossible/313887/1 "2010-09-13T05:17:47Z")

</div>

Hi.

Im getting kinda frustrated as I try to come up with a simple way of telling when a key was just pressed… I’ve used both senoculars KeyObj class and the KEY\_DOWN event, but i dont quite work as a would want the to work ( **if i press enter I get a zillions events - i just want ONE** ).

How should I be handeling the problem?
