How to create a door wit a key in VR?

I’m trying to do a door with a key you can rotate inside of the keyhole in virtual reality. I’ve tried but I can’t make it rotate past a certain degree, at which it goes back the other way. I haven’t found anything on youtube or on forums, is there a way to make a key rotate to open the door?

How are you rotating it at the moment. Could you show the script triggering it?