fix right and left arrow movement