Fix various problems with backspaces and control/alt keys