Maybe only have y change to z whenever the up or down keys are not pressed? This might allow lanes to be changed without messing up the ramp physics... Much. It might look a bit glitchy if it is possible, but again, I'm not exactly fluent with scripting, to say the least!