Hey, im just making a game rn of tutorials and ive been having this trouble for 3 weeks now... i cant be able to get my WASD keys to move slower

import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;

public class KeyInput extends KeyAdapter {

Handler handler;

public KeyInput (Handler handler) {
this.handler = handler;
}

public void keyPressed (KeyEvent e) {
int key = e.getKeyCode();

for(int i = 0; i < handler.object.size(); i++) {
GameObject tempObject = handler.object.get(i);

if(tempObject.getId() == ID.Player) {
if(key == KeyEvent.VK_W) handler.setUp(true);
if(key == KeyEvent.VK_S) handler.setDown(true);
if(key == KeyEvent.VK_A) handler.setLeft(true);
if(key == KeyEvent.VK_D) handler.setRight(true);
}
}


}

public void keyReleased(KeyEvent e) {
int key = e.getKeyCode();

for(int i = 0; i < handler.object.size(); i++) {
GameObject tempObject = handler.object.get(i);

if(tempObject.getId() == ID.Player) {
if(key == KeyEvent.VK_W) handler.setUp(false);
if(key == KeyEvent.VK_S) handler.setDown(false);
if(key == KeyEvent.VK_A) handler.setLeft(false);
if(key == KeyEvent.VK_D) handler.setRight(false);
}
}


}
}



Player class



import java.awt.Color;
import java.awt.Graphics;
import java.awt.Rectangle;

public class Wizard extends GameObject {

Handler handler;


public Wizard(int x, int y, ID id, Handler handler) {
super(x, y, id);
this.handler = handler;
}


public void tick() {
x += velX;
y += velY;


collision();


//movement inputs[KEYBOARD INPUTS]
if(handler.isUp()) velY = -5;
else if(!handler.isDown()) velY = 0;

if(handler.isDown()) velY = 5;
else if(!handler.isUp()) velY = 0;

if(handler.isRight()) velX = 5;
else if(!handler.isLeft()) velX = 0;

if(handler.isLeft()) velX = -5;
else if(!handler.isRight()) velX = 0;
}

private void collision() {
for(int i = 0; i < handler.object.size(); i++) {

GameObject tempObject = handler.object.get(i);

if(tempObject.getId() == ID.Block) {


if(getBounds().intersects(tempObject.getBounds())) {
x += velX * -1;
y += velY * -1;

}
}
}
}

public void render(Graphics g) {
g.setColor(Color.blue);
g.fillRect(x, y, 32, 48);

}


public Rectangle getBounds() {
return new Rectangle(x, y, 32, 48);

}

}



Thanks in advance