character controls implemented