Question: I'm trying to bind `Cmd`-`Right` and `Cmd`-`Left` to next and previous in my screenrc.

I've seen entries like the following but I do not know how to find the keycode for `Cmd`-`Right` or `Cmd`-`Left`. Is there a utility I can use somewhere?

```
bindkey "^[[1;5C"    next  # Ctrl-Right
bindkey "^[[1;5D"    prev  # Ctrl-Left

bindkey "^[[27;5;9~" next  # Ctrl-Tab
bindkey "^[[27;6;9~" prev  # Ctrl-Shift-Tab

```

Answer: 
You can use xev and then put the result into .Xmodmap file. Take a look to [this](http://cweiske.de/howto/xmodmap/allinone.html) HOWTO.
Just use `cat` in a terminal. Then all keycodes will be posted to stdout!