Workaround: Only handle key events if the actual control is focused.
Adapted new OnKeyPressed/Released handling to KeyEvents sample.