if you press 'i' you will enter INSERT MODE then you should press ESC to get out from INSERT MODE,
then use ':q' + ENTER to quit.