Fixed advancement of cursor using right arrow key.