Redone Key script.

Unity had some issues and had to recreate the script. It will now work as
intended.