         }
         // horizontal scrolling when focus is on header
         else if ( event.shiftKey
-                  && (event.keyCode == Keyboard.PAGE_UP
-                      || event.keyCode == Keyboard.PAGE_DOWN) )
-        {
-            moveSelectionHorizontally(event.keyCode, event.shiftKey, event.ctrlKey);
+                  && (keyCode == Keyboard.PAGE_UP
+                      || keyCode == Keyboard.PAGE_DOWN) )
+        {
+            moveSelectionHorizontally(keyCode, event.shiftKey, event.ctrlKey);
         }
 
         event.stopPropagation();

            return;
        }

        var deltaX:Number = event.stageX - startX;

        // Move header selection.
        s = Sprite(selectionLayer.getChildByName("headerSelection"));
        if (s)
            s.x += deltaX;

        // Move header proxy.
        item = IListItemRenderer(listContent.getChildByName("headerDragProxy"));
        if (item)
            item.move(item.x + deltaX, item.y);

        startX += deltaX;


                selectColumnHeader(headerIndex);
            }
        }
        else if (keyCode == Keyboard.SPACE)
        {
            if (sortableColumns && columns[headerIndex].sortable)
            {
