 
           var newSelectedHeaderInfo:AdvancedDataGridHeaderInfo;
           var siblings:Array;
-          if (event.keyCode == Keyboard.UP)
+          if (keyCode == Keyboard.UP)
           {
              if (selectedHeaderInfo.parent != null)
              {

                selectColumnGroupHeader(newSelectedHeaderInfo);
             }
          }
          else if (event.keyCode == Keyboard.SPACE)
          {
              if (sortableColumns && 
                  selectedHeaderInfo.column.colNum != -1 && !isNaN(selectedHeaderInfo.column.colNum)

        // get the item renderer to be passed in the ITEM_OPENING events
        if (listItems[visibleRowIndex])
            treeItemRenderer = listItems[visibleRowIndex][treeColumnIndex];
		
		// If rtl layout, need to swap LEFT and RIGHT so correct action
		// is done.
		var keyCode:uint = mapKeycodeForLayoutDirection(event);

        if (event.ctrlKey && event.shiftKey && keyCode == Keyboard.SPACE)
        {
            // if user has moved the caret cursor from the selected item
            // move the cursor back to selected item
