pattern match error in keyhandler (backspace) fixed