Space bar press wont update

Hi there guys I’m having a little issue here and I was wondering if you could help me with the issue. Alright here is the issue.

function Update () {

	print("space key pressed");


The issue I’m having with this is when I have pressed the space bar it comes up space key pressed however it only comes up once and therefor does not update every time I press the space bar and it should since it is in the function update and I don’t know why this is happening so can anybody help me.

Input.GetKeyDown is fired only once, when a key is pressed. If you want to repeat an operation WHILE they key is pressed, you’re looking for Input.GetKey.