Xmodmap and Xsession key.
Virtual Terminal Key bindings