CP/M v2.2 and 3.1 for the PCW16                           Keyboard reassignment 
===============================================================================

 Keyboard redefinition is done by the LOADKEYS command:

LOADKEYS keyfile

  where "keyfile" is a series of ASCII lines; each line can be formed:

	keyno,shift,ccode
or
	E,codeno,"text"

  In the first type of line, "keyno" is the key number (see the list below);
"shift" is the shift state; and "ccode" is the ASCII character which will be 
passed to CP/M. 
  In the second type, "codeno" is the expansion token number (80h-9Eh) and
"text" is the ASCII text you want the key to generate. You can include 
control characters by prefixing them with the ^ character; use ^" to get
a quotation mark and ^^ to get a ^ character.

  For example, to redefine the unshifted "A" key, a line could be:

97,N,98

and the shifted "A" key would be:

97,S,66

  The shift states are: N (normal); S (shift); C (Ctrl); CS (Ctrl+Shift); and 
T (Task).

  To make TASK+D do a directory listing, you can use:

100,T,129	# TASK+D produces expansion code 129
E,129,"DIR^M"	# Expansion code 129 produces DIR^M, ie: DIR then RETURN

  It is possible to save the current keyboard state with the command:

LOADKEYS keyfile.kmt [SAVE]

 - this saves a "keymap" file that can then be reloaded by LOADKEYS.

  Here is the full list of key numbers. Some keys are marked 
"can't redefine"; these keys are used for system purposes - mainly to
run the PCW16's built-in programs.

Number	Key		Comment
======================================================================
8	<- Delete	Below the Red and Green keys 
9	Tab
13	Return
32	Space
35	# 		Next to Return
37	Keypad "%"
39	'		Between ";" and "#"
43	Keypad "+"
44	,
45	-
46	. 
47	/
48-57	0-9 
59	;
65-90	A-Z with Caps Lock on. Can't redefine Task+T
91	[
92	\
93	]
96	`
97-122	A-Z		Can't redefine Task+T 
158	Keypad "times"
160	Keypad "-"
161	Keypad "divide"
189	Keypad "enter"
190	Keypad "."
192-201	Keypad "0"-"9"
224-227	Cursor keys up/down/left/right
228	Insert
229	Delete		Under Insert
230	Home
231	End
232	Page Up
233	Page Down
(234	Print Screen	Can't be redefined)
235	Undo
236	Help
241-248	F1-F8		Can't redefine TASK + function
249	Blue
250	Yellow
251	Green
252	Red
254	Stop		Can't redefine TASK+STOP
===========================================================================

