fn key_right(&mut self, screen: &mut Screen) {
        if self.cursor < self.buffer.len() {
            self.cursor += 1;
            self.render_input_box(screen);
        }
    }
/// Should be triggered when RIGHT key is pressed.
Should be triggered when RIGHT key is pressed.
Should be triggered when RIGHT key is pressed .
fn key_right(&mut self, screen: &mut Screen) {
        if self.cursor < self.buffer.len() {
            self.cursor += 1;
            self.render_input_box(screen);
        }
    }
fn key_right ( & mut self , screen : & mut Screen ) { if self . cursor < self . buffer . len ( ) { self . cursor += 1 ; self . render_input_box ( screen ) ; } }
Should be triggered when RIGHT key is pressed.
Should be triggered when RIGHT key is pressed .
&mut self
screen
&mut Screen
&mut self
screen
&mut Screen