Fixed bugs in console command for backspace and delete.