Implement selecting a candidate string by moving a cursor in the candidate window with arrow keys.