Implement coordinate input.