             switch (event.keyCode)
             {
                 case Keyboard.LEFT:
-                    hspDelta = (layoutDirection == "ltr") ?
+                    hspDelta = (layoutDirection == LayoutDirection.LTR) ?
                         vp.getHorizontalScrollPositionDelta(NavigationUnit.LEFT) :
                         vp.getHorizontalScrollPositionDelta(NavigationUnit.RIGHT);
                     break;
                 case Keyboard.RIGHT:
-                    hspDelta = (layoutDirection == "ltr") ?
+                    hspDelta = (layoutDirection == LayoutDirection.LTR) ?
                         vp.getHorizontalScrollPositionDelta(NavigationUnit.RIGHT) :
                         vp.getHorizontalScrollPositionDelta(NavigationUnit.LEFT);
                     break;

                case Keyboard.PAGE_UP:
                     if (!verticalScrollBar || !(verticalScrollBar.visible)) 
                     {
                         hspDelta = (layoutDirection == "ltr") ?
                             vp.getHorizontalScrollPositionDelta(NavigationUnit.LEFT) :
                             vp.getHorizontalScrollPositionDelta(NavigationUnit.RIGHT);
                     }

import spark.core.NavigationUnit;
import mx.core.IVisualElement;
import mx.core.IVisualElementContainer;
import mx.core.LayoutDirection;
import mx.core.ScrollPolicy;
import mx.events.PropertyChangeEvent;
import mx.managers.IFocusManagerComponent;
