I'm not sure you understood what I want to accomplisse, but this doesn't work as I wrote.
What I want is:
func _on_keys_pressed() -> void:
var temp = self.get_child(0).text
Utils.current_char = temp
detect_block() -> *this is the function from board script I want to add*
From my understanding you proposed this:
onready var key_scene = preload("res://keys.tscn")
func _ready() -> void:
keys = key_scene.instance()
The above doesn't work. The actions which are on keys script for pressed button work but the "keys.detect_block()" function from board doesn't trigger and doesn't give any error. Just ignored.