How to add event handler and methods in component?

EmailComponent: {
          y: 50,
          InputWithQwerty: {
            type: KeyboardInput,
            keyboardType: KeyboardQwerty,
            input: {},
          },
          Label: {
            mount: 0.5,
            x: 30,
            y: 10,
            text: { text: "Email", fontSize: 30 },
          },
        }

want to add " selectKeyOn" METHOD and " $toggleKeyboard" EVENT on this component.

1 Like