Fix delete/backspace key not simulated correctly

Fixes #29.