Hi again I have just noticed that the typed-in code is not quite correct at that point - it should be.....
'CAPS LOCK ON - check for the following conditions
if LN>$40 and LN<$5B then 'caps lock on & lower case selected
AC=LN
goto ASOUT
endif
if LN=$1B then 'caps lock on & (semi)colon selected
ac=$3A 'ASCII code for colon
goto asout
endif
goto as2 'send out to computer keyboard port
'check number pad
Alan
Bookmarks