The type of consequence that has altered Gabe's behavior is punishment by application.
Punishment by application is the term which is sometimes used to denote positive punishment. Positive punishment refers to an aversive stimulus that is added to a situation. In this case, Gabe feels aversion towards entering an elevator because he god stuck once.