Knock sensor is to detect engine knock due to bad timing, preignition etc. its located under the manifold on the block on transits with the puma engine.
What you linked to is the inertia sensor which is designed to cut power to the fuel pump in the event of a collision.