Add support to RTL to key down

In rtl mode the right & left key movement are in the opposite direction.