In your TextEntered event, don't add the character to your string if it is equals to the backspace character ( '\b' ).
In your current code you delete the last char in the KeyPressed event, and then you also add the backspace character in your TextEntered event, it is probably invisible. On further backspace key presses you delete that invisible character then add a new one. That's why it looks like it's not doing anything.