Wordplay is the term for using words in an unusual way that is considered amusing or otherwise interesting.

See also