[Slick2D] Movement Trouble

I’m trying to get my player to move smoothly. In my game though he is really jumpy and it just doesnt look smooth. here’s me code:

public void update(GameContainer gc, StateBasedGame sbg, int delta) {
		Input input = gc.getInput();
		
		x += velX;
		
		if(input.isKeyDown(Input.KEY_RIGHT)) {
			velX = delta * .1f;
		}else if(input.isKeyDown(Input.KEY_LEFT)) {
			velX = -(delta * .1f);
		}else{
			velX = 0;
		}
	}