insertion of headers by pressing enter (to create new events/state in the state machine example)