How to move shape


I have made this so far I’m new to processing I’m wondering how I can make it move right left up and down

So I can move it with my keyboard

float x=333, y=333, w, h;                // values 



void setup() {
  // Fenster wird erstellt
  size (425, 600);
}

void draw() {
  background(0); 
  ellipse(x, y, 19, 19);
}


void keyPressed() {
  if (key=='w')
    y--;
  if (key=='s')
    y++;

  if (key=='a')
    x--;
  if (key=='d')
    x++;
}