Fixed a very silly performance bottleneck regarding player input.