How would I make a door open when a key is pressed and a character is near?
I tested your .blend and as you said everything is set up correctly.
But the 'Near' sensor only gets activated by "Actors" (this is a physic 'property') so you need to go to the physic tap of your character (Cube) and actiate Actor.