listener for when a buddy is typing?

Hi, i was wondering if there was a listener that could be used when a buddy starts/stops typing?