lxc enter: improve escape key handling