use bevy::{ input::{keyboard::KeyCode, Input}, prelude::*, }; fn main() { App::build() .add_default_plugins() .add_startup_system(setup.system()) .add_system(move_on_input.system()) .run(); } /// This system moves our cube left when the "left" key is pressed and moves it right when the "right" key is pressed fn move_on_input( world: &mut SubWorld, time: Res