I want a dialogue box to pop up when I enter the specific area, and press the accept key (z in my case) but when I use my code, the dialogue doesn't work. The dialogue pops up when I make my code have it pop up when I just enter the area, but not with the if statement. What am I doing wrong?
func _on_ComputerDetector_area_entered(area):
if Input.get_action_strength("ui_accept"):
$Speech.show()