In my project i have multiple events binded on window escape keydown pressing , and all of them are executed at the same time when escape key is pressed.
I need to make this events to fire only one escape key press at a time, in a particular order, how can i do this?
It needs to works similarly as in telegram web version when pressing escape to deselect messages and then press again to close chat with someone.