Changing keyboard input

Using ANSI codes how do I change a keys value?
What I mean is
User Input:CTRL-Y
Recieved Input:6
I want to do this with many characters and I know ANSI can do this but I dont know the syntax...
\033[string;code;...p
or something like this
only problem is i dont know the syntax...
what is string?
what is code?
Topic archived. No new replies allowed.