# Hotkeys for movieclips

**URL:** https://forum.kirupa.com/t/hotkeys-for-movieclips/222598
**Category:** flash
**Created:** [April 15, 2007, 5:54am UTC](https://forum.kirupa.com/t/hotkeys-for-movieclips/222598 "2007-04-15T05:54:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Mythic\_Fr0st](https://avatars.discourse-cdn.com/v4/letter/m/4da419/32.png) [@Mythic\_Fr0st](https://forum.kirupa.com/u/Mythic_Fr0st)
#### Post date: [April 15, 2007, 5:54am UTC](https://forum.kirupa.com/t/hotkeys-for-movieclips/222598/1 "2007-04-15T05:54:58Z")

</div>

Basically I wanna detect when someone presses “space” or “enter” etc, and then execute a function when you press “space” etc…

Now…

I dont want to use onClipEvents…

How can I do this?

I’ve tried

```auto
if(Key.isDown(Key.SPACE))
{
    trace("run");
}

```

but nothing happens…

Any idea’s?
