adjusting arrow keys behavior