Yes, key events fire in the time between frames. Therefore it is possible to set and unset such a stateful bool within an enter frame for a number of reasons, not all of them predictable or desirable to a state based input model.
One solution is to buffer the effects of the events. E.g. an array of ups, and downs per keycode. This array accumulates between frames but is only processed on the enter frame (with the corresponding state toggled accordingly). Your code controls the buffer so it can even be processed one entry per frame, to ensure no key events are missed (albeit lagged) or to allow user input recordings.
I implemented a similar approach in the awe6 IInputKeyboard implementation, which may be helpful:
Flash driver:
which extends the abstract: