You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: plugin.rs
    path of file: ./repos/bevy_xpbd/crates/bevy_xpbd_2d/examples/kinematic_character_2d
    
    the code of the file until where you have to start completion: use bevy::{ecs::query::Has, prelude::*};
use bevy_xpbd_2d::{math::*, prelude::*, SubstepSchedule, SubstepSet};

pub struct CharacterControllerPlugin;

impl Plugin for CharacterControllerPlugin {
    fn build(&self, app: &mut App) {
        app.add_event::<MovementAction>()
            .add_systems(
                Update,
                (
                    keyboard_input,
 
    
    pub fn new(collider: Collider, gravity: Vector) -> Self {
        // Create shape caster as a slightly smaller version of collider
        let mut caster_shape = collider.clone();
        caster_shape.set_scale(Vector::ONE * 0.99, 10);

        Self {
            character_controller: CharacterController,
            rigid_body: RigidBody::Kinematic,
            collider,
            ground_caster: ShapeCaster::new(caster_shape, Vector::ZERO, 0.0, Direction2d::NEG_Y)
                .with_max_time_of_impact(10.0),
            gravity: ControllerGravity(gravity),
            movement: MovementBundle::default(),
        }
    }