Undo/Redo for arrow keys.
Merge pull request #889 from VladimirGl/arrowKeyFix

Arrow key fix