Map keyboard to gui buttons.

Is there a way to fool Unity in such a way as when I click a Gui button it would register as a keyboard event?

You could have a bool which was flipped when keypress, or when the GUI button was pressed. Then, have your script check for the value of that boolean, instead of keypress.

That may/may not work, depending on what you’re trying to do.