There is a key pressing problem about addListener I think

Hello all. I was coding some game but I stuck. I tried to solve it for a long time but I failed. I wrote the problem this site but nobody helped me, then I tried to solve the problem again. Well, I failed. But I noticed that maybe there’s a problem with Event Listener. You can find the fla in the attachment. The problem is, for example, if you press left key and while you hold left key, you press right key, and release the left key while you holding right key, the if case in the line 67 does not triggers. But if you press right key and then release the right key and press the left key suddenly, it triggers normally. I think, maybe you can’t use key_down and key_up event listener same time, but other if cases triggered normally, there’s a problem just for the if case that starts from line 67. Can you help me please I’ve been trying to solve the problem for a long time. :frowning: