added arrow key control on top and left fields