You need to specify key2_dis.pan += 3 * time_step;
in the while loop.