"Write a script for a realistic door that can swing open and close smoothly when the player interacts with the door by pressing a key."