How to create my own input

Hello, I would like to create my own input but I don’t know how to do. Currently, I have create an “input” into my event graph with a booleen value to have my “input” action. But I use the event tick to read this “input”, and I think I can optimize this.

Any help with this is greatly appreciated !