unity getkey keycode

C#
Input.GetKey(KeyCode.Space))
Source

Also in C#: