The issue occurred when moving up and down instruction is executed the pedestrian is moving at an incorrect speed. The pedestrian is moving instantly off the screen when a specific key is pressed, I dig into it and finds that every single keypress is executing multiple move instructions which cause the pedestrian to move at multiple times of the speed. Ideally, the pedestrian can only move to a specific distance which is the height of a lane on a single keypress.
The issue occurred when moving up and down instruction is executed the pedestrian is moving at an incorrect speed. The pedestrian is moving instantly off the screen when a specific key is pressed, I dig into it and finds that every single keypress is executing multiple move instructions which cause the pedestrian to move at multiple times of the speed. Ideally, the pedestrian can only move to a specific distance which is the height of a lane on a single keypress.