Remap arrow keys to move directory in NERDTree

When using NERDTree, I would like to remap the left & right arrow to move up & down a directory.

I believe the left arrow has to be mapped to ‘u’ yet I do not know how to do this only when NERDTree is the active window.


Try this: