fix for handling left-right keys when browsing directories