How do I get a GUI Texture Button to act as a Input Key such as a T button on a key bored or so?

I’m not much of a scripter but I do what I can and manged so far. But I cant seem to get this line of code to work.
if(functionTouchDown){
(Input.GetKey(KeyCode.W));
I want it so that if I press the button it would act as an input key. But I cant seem to figure this out for the life of me. Much appreciated if anyone can help me with this

Input is input-class, you can’t write something on user’s keyboard 8)

if you want to do the same function as on ‘W’ key you just need to implement it int ‘W’ key handler. for example:

if (Input.GetKey(KeyCode.W) || functionTouchDown) { ... }