Add right to left (RTL) support for languages like hebrew

Add direction to the settings.
Add key down, border & selection according to direction.