In an Ubuntu VM setup through vftool on M1 Mac, the arrow keys and ⌘+V keys are not working

I figured out actual cause for this issue. When VM is started with -t 0 command line argument of Vftool arrow keys shows escape characters. If vm is started without -t 0 (default 1), there is no issue with arrow keys.