Check out example codes for "unhandled input godot example". It will help you in understanding the concepts better.

Code Example 1

func _unhandled_input(event):
	if event.is_action_released("action name"):
		#Do stuff here

Learn ReactJs, React Native from akashmittal.com