Character walks and stands depending on input