Riddle Me This 1427

Beckim is going to bed. He gets undressed and changed, then goes and turns out his light. He is back in his room before the room is dark. He did not throw anything at it and it wans’t a clap on clap off switch, so how did he do it?