Double key pressing event fixes

Double key pressing event fixes for backspace and space bar.