Changing direction of arrow keys.