public void keyTyped(char c, int key) {
        if (!theTextField.isMouseInside()){
            return;
        }
        if (key == Keyboard.KEY_BACK) {
            String txt = text;
            if (txt.length() > 0) {
                txt = txt.substring(0, txt.length() - 1);
                text = txt;
            }
        } else if (key == Keyboard.KEY_LSHIFT) {
            isUpperCase = false;
        } else {
            if (isUpperCase) {
                text += Character.toUpperCase(c);
            } else {
                text += c;
            }
        }
    }