If you post a code snippet, ALWAYS USE CODE TAGS:
How to use code tags: Using code tags properly
Check the docs: Input.GetKeyDown()
is only valid within Update()
and functions that Update() calls.
Solution: Set / clear booleans in your Trigger functions, then check the key in Update