How do I make a macOS button become highlighted (blue)?

Viewed 1553

I've tried this:

myButton.highlight(true)

But this only turns the button into a darker blue, which is the "pressed down" state of the button.

Also, the button won't work when I press enter on my keyboard.

How can I make the button highlighted(blue) and togglable when I press enter?

1 Answers
Related