Detect backspace jquery. I just noticed your code is using getch() for input.

Detect backspace jquery. I know this bc i'm a web dev.