emulation: Fix escape sequences of keypad Home and End (take 2)

https://bugzilla.gnome.org/show_bug.cgi?id=600659#c63