You're right. The law says "may", not "must". Historically, for most of the 20th century, most people just stood at attention, and the hand on heart thing was just for the pledge of allegiance. The change came after 9/11. In any event, the first amendment makes participation in our national religion of flag-worship optional.