I see many posts on the forum related to movement in this 2D game. I think part of the problem is in code not yet shown.

Post the code that shows the event handlers for the key listener. Also post...