key, door - closing and starting events are added