How to exit the Vim editor?

I’m stuck and cannot escape. It says:

But when I type that it simply appears in the object body. Hit the Esc key to enter “Command mode”. Then you can type : to enter “Command-line mode”. A colon (:) […]