Depending on the terminal emulator you use, the keybindings may differ slightly.
To find out which key has which code, you can use the cat tool.
Simply enter "cat" and then press the relevant key. In my case, I wanted to use the "pos1/home" and "ende/end" keys to move the cursor to the beginning or end of the line in my terminal.
The cat tool gave me the code ^[[H for Home and ^[[F for End.
I then added the following lines to my .zshrc, which did the trick for me.
# Keybindings bindkey "^[[H" beginning-of-line bindkey "^[[F" end-of-line
Now I can use the keys in my Tilix as usual.