fixed functionality of enter and backspace keys
working ver