login window with user name

can we apple to restrict the user from doing cut and copy paste in test field named user name and password field only user should enter the data keyboard only restrict cut and paste can u give Java code for that

       if(Event.current.control && Event.current.command)// Ctrl for windows and cmd for mac
       {
       text = " ";
       }