Packer boot_command Issue - Ignoring Specific Keystrokes

Hello HashiCorp Packer Community,

I’m currently facing an issue with the boot_command function in Packer.
My issue pertains to certain keystrokes being ignored during the execution of the command, particularly the <down> keystroke and another visible English letters (such as s).

Everything in the boot_command runs as expected, except for the <down>s part.
The system seems to completely ignore these keystrokes.

I have checked the keyboard layout and it is US QWERTY, which should be compatible with Packer’s expectations.

I am not running headless mode.

Has anyone faced a similar issue or can suggest what might be the cause of this?

Any insights or suggestions will be greatly appreciated!