Fixed up arrow key move for Mathtex Images