 The purpose of this study is to test the safety and find out what effects, good andor bad, dabrafenib a BRAF inhibitor alone or dabrafenib when given in combination with gamma knife radiosurgery has on participants with a certain type of skin cancer BRAFV600E melanoma and brain metastases tumors that have spread to the brain. 