If needed, request focus before sending key event