Fix issue preventing tasks from acquiring keyboard input events