Better xmodmap sniffing