@Override
	public void keyReleased(int key) {
		// TODO Auto-generated method stub
		if(isActive){
			 if(Input.getKeyName(key).equals("BACK")){
				if(!(text.length() == 0)){
					text = text.substring(0, text.length() - 1);
				}
				return;
			 }
			if(text.length() >= maxLength){
				return;
			}
			if(Input.getKeyName(key).equals("SPACE")){
				text = text + " ";
			}else if(Input.getKeyName(key).equals("PERIOD")){
				text = text + ".";
			}else if(Input.getKeyName(key).equals("COMMA")){
					text = text + ",";
			}else if(Input.getKeyName(key).equals("SLASH")){
				text = text + "/";
			}else if(Input.getKeyName(key).equals("BACKSLASH")){
				text = text + "\\";
			}
			else{
				
				text = text + Input.getKeyName(key);
			}
			
		}
	}