Help Keyboard

Could some one give me something like this?
function OnMouseUp()

I want the function to happen when I press space like function
OnKeyboardButtonSpace()

P.S. im a newbie I know

Unity - Scripting API: EventType.KeyDown might help