The joke is a pun.  'Taking steps' to avoid something generally means to have some kind of practice or habit that one does in order to avoid something they dislike.  If one avoids taking an elevator, they would have to use stairs most likely, and literally will have to 'take steps'.
I usually take steps to avoid elevators .