!! on x250 insert and end is on the same button keycode 118 = End !! Swap caps lock => escape remove Lock = Caps_Lock keysym Caps_Lock = Escape add Lock = Caps_Lock