You can see a list of tasks you completed on that day in your day view (at the very bottom - don't see it?).
So if you just marked a task done it will show up in the "completed tasks" section for that day (unless it was scheduled for another day, in which case you will find it in that day's completed task section).
Unmarking it done
You can then click on the checkbox icon again to unmark it done.
Alternative using the Logbook
If you don't see the task there, open the Logbook (☰ → Logbook). It lists what you finished day by day, so the task you just marked done is under today. You can also press F there to search.
Click its checkbox there to unmark it done.