Character walks or stands depending on input