Function to get character at X location
Move caret to where the user clicks (#47)