# Keypress

**URL:** https://forum.kirupa.com/t/keypress/242373
**Category:** Uncategorized
**Created:** [October 25, 2007, 8:44am UTC](https://forum.kirupa.com/t/keypress/242373 "2007-10-25T08:44:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![stillbeating](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@stillbeating](https://forum.kirupa.com/u/stillbeating)
#### Post date: [October 25, 2007, 8:44am UTC](https://forum.kirupa.com/t/keypress/242373/1 "2007-10-25T08:44:41Z")

</div>

hi everyone!  
im trying to make a fighting game and i need to know how to do basic keypressing thingos.

i’ve got my character with all its animations and whatnot (as a movieclip)  
now i need to know how to make it attack/die whatever when a certain key is pressed.

so, yeah i need codes.

your help would greatly be appreciated.  
(can you please state wether the codes go on the movieclip or a layer, or whatever. thanks.)
