How do i get a character to interact with an object?

thanks for actually being willing to work with me lol most people would just get irritated im a noob and stop trying haha. i guess to an extent i want it to be more of a component. its a book shelf that opens a secret passage way where like the player would find a clue to go look at a certain book and when they hit the button to interact with that book (which is where the preciseness comes in because it has to be that book and not any of the others on the shelf) it slides the bookcase sideways to open the secret passage. again sorry if this is a huge pain