Stepper Motor Speed Issues When Using PS2 Controller and LCD Screen

I agree, seeing the code would help. I couldn't fit it in the original post, and then did not have access to it at the time of posting. Sorry for the delay. The code is attached. It's too big to add as code in the post.

Stepper_Speed_Control_With_PS2_And_I2C_LCD.ino (15.1 KB)