Avoid key pressed at the same time

Hi there, I am creating a snake game. My issue is while the snake is moving left, when I press down and right key arrow at the same time, the snake changes it direction but not moving dow and right. How can I avoid this problem? Thanks

Hi, we just tried the operation and it didn’t reproduce your problem in our editor. Can you show us your code that controls the movement of the snake?

Are you trying to do diagonal movements?

You want to intercept two key presses at the same time? What is your desired outcome?