For backspace, attempt to determine the right value from the terminal's IO settings.
For delete, use the control sequence.