Mapping to close terminal split

Hi,
I have a mapping to open a terminal split e.g

nnoremap <silent> <KEY1> :10split term://zsh<CR>

and then close it with

tnoremap <silent> <KEY1> <C-\><C-n> :q<CR>

this works pretty well if the output in the terminal split is small. As soon as the output in the terminal split exceeds the terminal window size. e.g
open the terminal split with KEY1
cat long_text_file.txt
close terminal split with KEY2

the mapping to close the terminal split fails.
The key supposing to close the terminal only switches to normal mode. I can than :q to close the split but the key mapping fails. Anybody has a solution to this?

Remove the space before the colon. Actually there is no need to switch to normal mode. You can use <Cmd>q<CR>.

This is probably because you have a space before the colon, and a space is a motion command. In the last line of a buffer, this motion fails, and the following of the mapping is not executed. See :h map-error:

							*map-error*
Note that when an error is encountered (that causes an error message or beep)
the rest of the mapping is not executed.  This is Vi-compatible.

I deed!
Many thanks!