Check or uncheck a task