_inputHandler.addKeyboardAction( this.name + "home_action", KeyInput.KEY_HOME, new EditBoxKeyInputAction() {
_inputHandler.addKeyboardAction( this.getName() + "home_action", KeyInput.KEY_HOME, new EditBoxKeyInputAction() {
    private void setupKeyBindings() {                _inputHandler.addKeyboardAction( this.name + "backspc_action", KeyInput.KEY_BACK, new EditBoxKeyInputAction() {            public void performAction( InputActionEvent event) {                buffignore = true;                                if( _cursorPos > 0 && _textBuffer.length() > 0) {	                String before = _textBuffer.substring( 0, _cursorPos - 1);	                String after = _textBuffer.substring( _cursorPos);	                _textBuffer = before + after;	                _text.setText( _textBuffer);	                _cursorPos -= 1;	                setCursorLocation();                }                            }        });        _inputHandler.addKeyboardAction( this.name + "delete_action", KeyInput.KEY_DELETE, new EditBoxKeyInputAction() {            public void performAction( InputActionEvent event) {                buffignore = true;                if( _cursorPos < _textBuffer.length() && _textBuffer.length() > 0) {	                String before = _textBuffer.substring( 0, _cursorPos);	                String after = _textBuffer.substring( _cursorPos + 1);	                _textBuffer = before + after;	                _text.setText( _textBuffer);                }                            }        });        _inputHandler.addKeyboardAction( this.name + "left_action", KeyInput.KEY_LEFT, new EditBoxKeyInputAction() {            public void performAction( InputActionEvent event) {                buffignore = true;                _cursorPos -= 1;                                if( _cursorPos < 0) {                    _cursorPos = 0;                }                setCursorLocation();                            }        });        _inputHandler.addKeyboardAction( this.name + "right_action", KeyInput.KEY_RIGHT, new EditBoxKeyInputAction() {            public void performAction( InputActionEvent event) {                buffignore = true;                                _cursorPos += 1;                                if( _cursorPos > _textBuffer.length()) {                    _cursorPos = _textBuffer.length();                }                                setCursorLocation();                            }        });        _inputHandler.addKeyboardAction( this.name + "end_action", KeyInput.KEY_END, new EditBoxKeyInputAction() {            public void performAction( InputActionEvent event) {                buffignore = true;                                _cursorPos = _textBuffer.length();                setCursorLocation();            }        });                _inputHandler.addKeyboardAction( this.name + "home_action", KeyInput.KEY_HOME, new EditBoxKeyInputAction() {            public void performAction( InputActionEvent event) {                buffignore = true;                _cursorPos = 0;                setCursorLocation();            }        });                _inputHandler.addKeyboardAction( this.name + "space_action", KeyInput.KEY_SPACE, new EditBoxKeyInputAction() {            public void performAction( InputActionEvent event) {                buffignore = true;                if( ( (_textBuffer.length() + 1) * ( _text._texSizeX * _text._xtrimFactor)) > _width ) {                    return;                }                                String before = _textBuffer.substring( 0, _cursorPos);                String after = _textBuffer.substring( _cursorPos);                before += ' ';                _textBuffer = before + after;                _text.setText( _textBuffer);                _cursorPos += 1;                setCursorLocation();                            }        });                _bufferedInput.addBufferedKeyAction(new KeyInputAction() {            public void performAction(InputActionEvent event) {                                if( !buffignore) {                                        if( ( (_textBuffer.length() + 1) * ( _text._texSizeX * _text._xtrimFactor)) > _width ) {                        return;                    }                	                String before = _textBuffer.substring( 0, _cursorPos);	                String after = _textBuffer.substring( _cursorPos);	                before += key;	                _textBuffer = before + after;	                _text.setText( _textBuffer);	                _cursorPos += 1;	                setCursorLocation();                }                                buffignore = false;                            }        });    }