The longest word used by shakespeare is "honorificabilitudinitatibus" in the following context -
"I marvel thy master hath not eaten thee for a word;
for thou art not so long by the head as
honorificabilitudinitatibus: thou art easier
swallowed than a flap-dragon."
[Love's Labour's Lost, Act 5, Scene 1]