KeyUp is an event that occurs when a key is released. So, you can use Input.GetKeyUp("up"); to check whether the key is being released. It is an event that occurs during the frame that a key is released.