fix home/end keys on some systems

@frillip will like this