I was writing a paper one night for school.
To avoid the sleepiness, I made some coffee and went back to work.
I was really tired but stayed up all night.
I was really tired and did not want to stay awake.