# Door problems

**URL:** <https://forum.kirupa.com/t/door-problems/200204>\
**Category:** Uncategorized\
**Created:** [September 10, 2006, 2:20am UTC](https://forum.kirupa.com/t/door-problems/200204 "2006-09-10T02:20:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mongoose9990](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@mongoose9990](https://forum.kirupa.com/u/mongoose9990)\
**Post date:** [September 10, 2006, 2:20am UTC](https://forum.kirupa.com/t/door-problems/200204/1 "2006-09-10T02:20:18Z")

</div>

:beam: hi,

im currently working on a pokemon game and i am trying to make it when you can go up to the door and press enter it goes inside but with the code im useing which i just made up and put on the door onClipEvent  
(enterFrame) {  
if (Key.isdown(key.ENTER)) {  
play();  
}  
}  
works but i can go inside where ever i am so do i need to put a diffrent code or can i just not do it?
