pub trait InputState { // Required methods fn pressed(&self, key: &SingleKey) -> bool; fn just_pressed(&self, key: &SingleKey) -> bool; }