Fixed erroneous return with a continue

This bug stopped the flushing of the event queue by returning too early
Merge pull request #347 from TheNeikos/fix-input_event_loop

Fixed erroneous return with a continue