check_ap function

Checks whether antipsychotic names are in the key