Key code?

hello again, well, I wanted to ask u how I could get the code for the keyboard buttons. like i remember a tutorial or so where u could press a button and u got the code for the button in the output windows or so… like A is like 260 or something like that…

anyone can help me w/ that? please?