This method is called called when a keyboard key is released.
This is a protected virtual method. It can only be used by declaring it in a custom widget.