Grabbing static object with physics-based movement

I’m trying to implement grabbing on physics-based character but am struggling with some mechanics. When the player is near a lever that’s attached to a wall and grabs it, it should place the hand on top of the lever and prevent the player from moving away until it releases the lever, similar to Human Fall Flat. I tried using the PhysicsConstraint component to prevent the player from walking away but that didn’t work. Hand IK isn’t working either. I use a virtual bone for the hand IK