Now using event loop for improved key press interaction