The example is below:
private void OnTriggerEnter(Collider other) { if (other.CompareTag("Water") && Input.GetKeyDown(KeyCode.E)) {