              }
              
           }
-          else if (event.keyCode == Keyboard.DOWN)
+          else if (keyCode == Keyboard.DOWN)
           {
              //Check if we are a leaf-header
              if (selectedHeaderInfo.visibleChildren == null || selectedHeaderInfo.visibleChildren.length == 0)

            }
            event.stopImmediatePropagation();
        }
        else if (event.keyCode == Keyboard.NUMPAD_MULTIPLY)
        {
            expandChildrenOf(item, !isItemOpen(item));
        }
        else if (event.keyCode == Keyboard.NUMPAD_ADD)
        {
            if (isBranch(item))
            {

          }
          // horizontal scrolling when focus is on header
          else if ( event.shiftKey
                  && (keyCode == Keyboard.PAGE_UP
                     || keyCode == Keyboard.PAGE_DOWN) )
          {
             moveSelectionHorizontally(keyCode, event.shiftKey, event.ctrlKey);
          }
        
          // don't we allow vertical scrolling when focus is on the header?
