Use up, down, left and right arrow keys. Navigate Scratch Cat to pick up the key and then use that key to unlock the yellow door to go outside.
There are two things to debug in this game: 1) Scratch Cat can walk through the green walls - can you fix this? 2) The key doesn't do anything. How can Scratch Cat pick up the key and use it to unlock the door?