unity get name of key down code example Example: get key unity if(Input.GetKey(KeyCode.Space)) { //do somthing }