@Override
  protected void run()
  {
    Set<UUID> objectsWithComponent = objectManager.getAllObjectsWithComponent(HCKeyMotion.class);

    if (objectsWithComponent.isEmpty()) {
      return;
    }
    keyboard.update();
    if (keyboard.esc) System.exit(0);

    for (UUID o : objectsWithComponent) {
      HCVelocity velocity = objectManager.getComponent(o, HCVelocity.class);
      if (keyboard.up) {
        velocity.y = -3.0;
      } else if (keyboard.down) {
        velocity.y = 3.0;
      } else {
        velocity.y = 0.0;
      }
      if (keyboard.left) {
        velocity.x = -3.0;
      } else if (keyboard.right) {
        velocity.x = 3.0;
      } else {
        velocity.x = 0.0;
      }
    }
  }