@Override
	public void onKeyPressed(char key, int keyCode, boolean coded)
	{
		// Doesn't react to coded keys
		if (coded)
			return;
		
		// If backspace was pressed, removes the last character
		if (key == KeyEvent.VK_BACK_SPACE && this.input.length() >= 1)
			this.input = this.input.substring(0, this.input.length()-1);
		// If other (SPACE, TAB, ENTER, ESC, and DELETE), doesn't react
		else if (key == KeyEvent.VK_DELETE || key == KeyEvent.VK_TAB || 
				key == KeyEvent.VK_ENTER || key == KeyEvent.VK_ESCAPE 
				|| key == KeyEvent.VK_SPACE)
			return;
		// Otherwise adds the character to the string
		else
			this.input += key;
	}