You can use a script block and the observation support (see [1]) from prototypejs for observing the paste event:
For example:
var m = CAF.model("#{caf:cid('yourTextInputId')}");
if (m) {
//observe the paste event
Event.observe(m.element, "paste", function(e) {
//TODO: your paste logic here
});
}