press enter once you've typed the code you can delete with backspace
thx to @grifpatch for the enter detect and delete detect script