Now each iteration works with constant "pressed-keys", eliminating situations, when key is pressed in the middle of processing key config, ruining right order of things.