Misdirection is used in magic, and jokes.

Something going one way, and then another, or a joke with a magic tractor that went up a hill and turned into a field.

Magic and jokes both use ‘misdirection’.

Something is going one way, then goes another – like the magic tractor that went up a hill and turned into a field.