Use key sym translation to get keyboard input