Wouldn't it be better to use the chess notation, to enter the letters and numbers for which file and which rank you want, instead of having to move the cursor by arrows?
I used curses simply because it was quick to experiment with since I had some similar code from another game I could reuse.