You open the red box with a red key. Sorry, escape the room logic...
OK, but when I collect the knife it says it can be used in the inventory by pressing i, and nothing happens when I do that, so how is an item used in the inventory?
You have to look into the appropiate thing to use it with, or combine it with another to make it useful. I think you used the knife with the pillow