looking for help with item pickups

I am a noob,so I don’t know how to create an object that is pickuppable(?) I want my player to be able to pick up an object (key/key card) and use it to open a door or series of doors, any suggestions or assistance would be appreciated. Smart asses need not reply.

IF you meen like Just a simple collision pick up.

function OnCollisionEnter(TheCollision : Collision){
if(TheCollision.gameObject.name == “Pickup”){

Or do you want to like press a keyboard key to open up a door if you have a pick up ?