It’s inside the EvilCircle constructor for the key bindings to be automatically created when the evil circle gets created. You couldn’t use it outside the EvilCircle class either, because we need the this keyword to refer to the evil circle. Otherwise, key presses wouldn’t move the evil circle.