 
         var newCaretColumnIndex:int;
 
-        switch (event.keyCode)
+        switch (keyCode)
         {
             case Keyboard.UP:
             {

        // get the item renderer to be passed in the ITEM_OPENING events
        if (listItems[visibleRowIndex])
            treeItemRenderer = listItems[visibleRowIndex][treeColumnIndex];

        if (event.ctrlKey && event.shiftKey && event.keyCode == Keyboard.SPACE)
        {
            // if user has moved the caret cursor from the selected item
            // move the cursor back to selected 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?
