The off -> on transition interpolation is handled is the switch statement. cycle_throttles will only ever be true when the virtual key was not pressed in the last update.