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

This would probably work for what i need but i am trying to get it a little bit more precise and i geuss mouse control makes it goofy lol. Thank you for the quick response though.