ADT Map help

This should be a fairly simple method to complete, but I cant seem to get it to work. All i'm trying to do is write a remove method that looks through this map, if it finds the key it needs to it removes that key and returns the value it had. If it is not found null is returned. here is what I have: