changed input stuff to use IsPressed and IsReleased