         }
 
         // Handle Keyboard.DOWN Navigation
-        if (event.keyCode == Keyboard.DOWN)
+        if (keyCode == Keyboard.DOWN)
         {
             if (openMenuIndex != -1)
             {

            var nextIndex:int = openMenuIndex;
            var found:Boolean = false;
            var count:int = 0;
            while (!found && count < barLen)
            {
                count++;
                nextIndex = (event.keyCode == Keyboard.RIGHT) ? nextIndex + 1 : nextIndex - 1;

                if (nextIndex>=barLen)
                    nextIndex = 0;
                else if (nextIndex < 0)

        }
  
        // Handle Keyboard.ENTER/ESCAPE Commands
        if ((keyCode == Keyboard.ENTER) || (keyCode == Keyboard.ESCAPE))
        {
            if (openMenuIndex != -1)
                getMenuAt(openMenuIndex).hide();
