onPressed

open fun onPressed()

Informs the key that it has been pressed, in case it needs to change its appearance or state.

See also