Started a 2d Game project and I'm using KeyListener for the input/movement.
What I realised is, that vertical movement has priority over horizontal movement.
Holding W or S and then pressing A or D does nothing, the other way around though Holding A or D and then Pressing W or S does change the direction.
Put my code in chatgpt and bro says there is nothing wrong about my code and KeyListener is like that. Anyone got experience?