TextField Data Pasting Restriction

How can I restrict to paste(Ctrl+V) data directly in a textfield rather than allowing data only through keyboard typing