In the Tasks window, select the task list you want to work with, right-click on the task you want to change and select the Mark as completed option.
Alternatively, open the Task window and tick the Completed checkbox.