# Problem - can i add certain key presses with a hittest

**URL:** https://forum.kirupa.com/t/problem-can-i-add-certain-key-presses-with-a-hittest/120917
**Category:** Uncategorized
**Created:** [August 28, 2004, 7:33pm UTC](https://forum.kirupa.com/t/problem-can-i-add-certain-key-presses-with-a-hittest/120917 "2004-08-28T19:33:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![patricktheking](https://avatars.discourse-cdn.com/v4/letter/p/a3d4f5/32.png) [@patricktheking](https://forum.kirupa.com/u/patricktheking)
#### Post date: [August 28, 2004, 7:33pm UTC](https://forum.kirupa.com/t/problem-can-i-add-certain-key-presses-with-a-hittest/120917/1 "2004-08-28T19:33:21Z")

</div>

hey i have a question… can u create something where if the main mc is on a certain ground or something, if enter is pressed the game will go to the next scene…  
I tryed attacking this to the piece of ground in which i would like this to occur but with no luck

onClipEvent (enterFrame) {  
if (this.hitTest(\_root.man)) {  
if (Key.isDown(Key.ENTER)) {  
gotoAndPlay(2);  
}  
}

it doesnt work for some reason… i tryed this as well

onClipEvent (enterFrame) {  
if (this.hitTest\_root.man) {  
if (Key.isDown.Key.ENTER) {  
gotoAndStop(2);  
}  
}  
}

any ideas why…
