On button press/hold = input from a keyboard?

Hello. I’d like to ask is there a way to simulate keyboard input when I press an OnGUI button? For example the horizontal axis to be become -1 on button hold.

Thank you.

Nope, sorry. You’ll have to code it yourself. Note that querying ‘Horizontal’ is only indirectly keyboard input.