moved behavior from movement to input.