any key event dont work in gamepad

any similar event? or how do I detect the gamepad in the widget?