# Can you help me with an issue

**URL:** <https://discourse.processing.org/t/can-you-help-me-with-an-issue/20430>\
**Category:** Coding Questions\
**Created:** [May 3, 2020, 12:23pm UTC](https://discourse.processing.org/t/can-you-help-me-with-an-issue/20430 "2020-05-03T12:23:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arsenii](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@Arsenii](https://discourse.processing.org/u/Arsenii)\
**Post date:** [May 3, 2020, 12:23pm UTC](https://discourse.processing.org/t/can-you-help-me-with-an-issue/20430/1 "2020-05-03T12:23:30Z")

</div>

I can’t understand why triangle does not rotating.

```auto
spaceShip ship;

void setup() {
  size(640, 360);
  ship = new spaceShip();
}

void draw() {
  background(0);
  ship.render();
  //ship.turn(0.1);
}

void KeyPressed() {
  if (keyCode == RIGHT)
    ship.turn(0.1);

  if (keyCode == LEFT)
    ship.turn(-0.1);
}
class spaceShip {
  PVector pos = new PVector (width/2, height/2);
  float r = 10;
  float heading = 0;
  spaceShip() {
  }

  void render() {
    translate(pos.x, pos.y);
    noFill();
    stroke(255);
    rotate(heading);
    triangle(-r, r, r, r, 0, -r);
  }
  void turn(float angle) {
    heading+=angle;
  }
  
}

```

---

<div class="post-metadata">

**Author:** ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)\
**Post date:** [May 3, 2020, 1:24pm UTC](https://discourse.processing.org/t/can-you-help-me-with-an-issue/20430/2 "2020-05-03T13:24:27Z")

</div>

> [@Arsenii](#):
>
> `void KeyPressed() {`

Is the problem, Java is case sensitive so it should be  
`void keyPressed() {`
