Fixed issue when moving text with arrow keys