This method is called called when a keyboard key is pressed.
| Parameter | Description | 
|---|---|
| keycode | the key that was pressed | 
If the method returns true menu hotkeys will be overridden.
This is a protected virtual method. It can only be used by declaring it in a custom widget.