Fix event checking by making event polling asynchronous

Add possibility to increase/decrease cycles by pressing F5/F4