XSS challenge WAPTX

Hi Team,

I was trying to resolve the XSS lab of WAPTX but input is going to server

i have tried to press enter it goes to next line instead of sending inputs to the server.

even i tried to paste the script for 2nd lab which is also mot working properly.