1. fixed record input
2. added backspace counter and key counter
3. need to take care of selection