# Key.removeListener() - Multiple Key Listener Objects?

**URL:** <https://forum.kirupa.com/t/key-removelistener-multiple-key-listener-objects/251761>\
**Category:** flash\
**Created:** [February 12, 2008, 1:36pm UTC](https://forum.kirupa.com/t/key-removelistener-multiple-key-listener-objects/251761 "2008-02-12T13:36:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bnet](https://avatars.discourse-cdn.com/v4/letter/b/bbce88/32.png) [@Bnet](https://forum.kirupa.com/u/Bnet)\
**Post date:** [February 12, 2008, 1:36pm UTC](https://forum.kirupa.com/t/key-removelistener-multiple-key-listener-objects/251761/1 "2008-02-12T13:36:11Z")

</div>

Hi  
I have a problem with deleting previous Key listeners. I am building a “portfolio menu” class that creates a menu where you should be able to navigate up and down theough the keyboard keys UP and DOWN. So far so good. On my site I also have a main menu from where I launch my “portfolio menu”. In that main menu I also have other main sections like for example “Contact”.

The first time I launch the “portfolio menu” it works perfect but if I go to for example “Contact” the porfolio class creates a second key listener object and it makes the menu to jump more steps than it should.

I can’t figure out how to use Key.removeListener(myKeyListenerObject)???

PLZ help me! 🙂
