Handle the 'paste' event
Added functionality to cancel a keypress before the character becomes visible in the textbox.
Previously, the keypress was allowed and then validated after the new char was visible in the textbox.