Fixed it so the enter will call the correct button associated with the program's focus.