i have solved the problem, thanks anyway
basically when you hit backspace it goes into the if statement and delets the right-most letter, however backspace is also counted in entry$() command, (the short vertical line), i found this out when got rid of the delete command, the line just kept comming up, so all you to do is put it in a if-else-endif statement:
function _input(x,y)
sync on
text$=""
clear entry buffer
repeat
paste image 70,300,250
text x, y, text$
if keystate(14)=1
paste image 70,300,250
text$=left$(text$,len(text$)-1)
wait 50
else
text$=text$+entry$() : clear entry buffer
endif
clear entry buffer
if controlkey()=1 and keystate(47)=1
text$=text$+get clipboard$()
wait 200
endif
sync
until returnkey()=1
endfunction text$
similarly the line was coming up at the start the second time i used it because the last button i had pressed was enter, and the line must come up with the enter key as well