Added support for retrieving the inputed text.
Added enter and backspace keys