I'm trying to use code from http://wiki.processing.org/w/Multiple_key_presses (Option 1) to detect multiple key presses in my simple game project. But there's the strange issue that occurs for me, but not at every launch.
Sometimes when I'm holding a key (for example "a"), keyReleased() method is called unexpectedly after few seconds. It sets my keys[keyCode] tofalse(just like in the Option 1 example) and it fails my game logic.