@Override
    public void onKeyEvent(KeyEvent pKeyEvent) {
        if (null != this.mText && this.mIsFocused && pKeyEvent.getID() == KeyEvent.KEY_PRESSED) {
            if (pKeyEvent.getKeyCode() == KeyEvent.VK_BACK_SPACE) {
                int currentTextLenght = this.mString.length();
                currentTextLenght--;
                if (currentTextLenght < 0) {
                    return;
                }
                this.mString = this.mString.subSequence(0, currentTextLenght);
            } else if (32 <= pKeyEvent.getKeyCode() 
                    && pKeyEvent.getKeyCode() <= 126
                    && this.mString.length() < this.mMaxLenght) {
                this.mString += Character.toString(pKeyEvent.getKeyChar());
            }
        }
    }