Remove duplicates in the keydefs

Duplicates are removed in the code. Defining the DX keys as last doesn't work
anymore as the musl's qsort sorts differently and thus different entries will be
removed (not the first ones). Let's just have one definition for each keycode.
Handle jump to line as in xterm

This fixes an annoying screen corruption when scrolling in vim under tmux.