Simple. Disable (not delete, but disable) the event on your door that makes it open, and name the brick. Then set your key to:
on activate or on player touch > Named Brick (the name you gave your door opener here) > set event enabled > (the event number of the brick that lets it open here) > [check the box].
For a realistic affect, you can also set the key to disapear when clicked/touched.