[Bug 56697] _kbhit ignores the last event in the queue