Sets direction by arrow keys.