Fixed, sent correct event for right/left key on RTL layouts.

-see #839
Merge remote-tracking branch 'upstream/master'