             }
             event.stopImmediatePropagation();
         }
-        else if (event.keyCode == Keyboard.LEFT)
+        else if (keyCode == Keyboard.LEFT)
         {
             // Left Arrow closes an open item.
             // Otherwise, selects the parent item if there is one.

            // Ctrl keys always get sent to the List.
            super.keyDownHandler(event);
        }
        else if (event.keyCode == Keyboard.SPACE)
        {
            // if user has moved the caret cursor from the selected item
            // move the cursor back to selected item

            }
            event.stopImmediatePropagation();
        }
        else if (keyCode == Keyboard.RIGHT)
        {
            // Right Arrow has no effect on leaf items. Closed branch items are opened. 
            //Opened branch items select the first child.
