Make sure we don't skip rendering sometimes when a key was pressed during rendering.