def METHOD_NAME(self, task):
    """Updates the camera based on the keyboard input."""
    delta = base.clock.dt
    move_x = delta * 3 * -self.keys['a'] + delta * 3 * self.keys['d']
    move_z = delta * 3 * self.keys['s'] + delta * 3 * -self.keys['w']
    self.camera.setPos(self.camera, move_x, -move_z, 0)
    self.heading += (delta * 90 * self.keys['arrow_left'] +
                     delta * 90 * -self.keys['arrow_right'])
    self.pitch += (delta * 90 * self.keys['arrow_up'] +
                   delta * 90 * -self.keys['arrow_down'])
    self.camera.setHpr(self.heading, self.pitch, 0)
    return task.cont