Clear line when pressing ESC.

Having a long password and making a mistake is annoying,
instead of pressing backspace a lot of times, escape will
any previously input text.

Also, added three comments.