: : : This is the key code I need to know:
: : :
: : : what is the key code for "enter"?
: : :
: : : eg. Shift key is 0
: : :
: : 13
: :
: I don't know pascall, so if this seems completly wrong then don't read it

:
: No, 13 is the ascii for newline, the makecode for Enter is 36.
: What does keycode really mean?
: The return value of INT 21h,1 (aka getc() in C in windows)?
:
13 isn't newline, but cariage return (returns cursor to first character). newline is 10. The distinction comes from the old mechanical type-writers. The string 'abc'#10'def' should look like this:
abc
def
while 'abc'#13'def' is
def
and 'abc'#13#10'def' and 'abc'#10#13'def':
abc
def
KeyCode is the code, which is returned by the ReadKey() function. This function maps the "normal" keys to ASCII mapping, while the extended keys are mapped in a 16-bit code space.