Special Keyboard Input Characters

Prev Next

Introduction

B4P has the unique capability to translate characters received with the functions getch() or input quick() into dedicated UNICODE characters located in the Private Use Area B. This area is freely available for proprietary use and will not interfere with assignments of new characters in the future. Every key pressed, e.g. a function or arrow key, will return a single character.

These characters ensure cross-platform compatibility.
See Special keyboard input characters.

Note: You may have considered Escape sequences (which date back to Digital Equipment VT100 terminals in the late 1970's , e.g. ESC [A for a cursor key) but these symbols do typically contain multiple characters (up to seven of them) and B4P will not guarantee cross platform portability.

Function and Navigation Keys

Following table applies with function and arrow keys pressed alone.

Key UNICODE (hex) Character Entity Name
Insert 108000 &insert;
End 108001 &end;
Arrow down 108002 &arrow-down;
Pg dn 108003 &pgdn;
Arrow left 108004 &arrow-left;
Center key (Keypad 5) 108005 &center;
Arrow right 108006 &arrow-right;
Home 108007 &home;
Arrow up 108008 &arrow-up;
Pg up 108009 &pgup;
Delete 10800a &delete;
F1 108011 &f1;
F2 108012 &f2;
F3 108013 &f3;
F4 108014 &f4;
F5 108015 &f5;
F6 108016 &f6;
F7 108017 &f7;
F8 108018 &f8;
F9 108019 &f9;
F10 10801a &f10;
F11 10801b &f11;
F12 10801c &f12;

Control Key held down

Following table applies with function and arrow keys pressed while the control key is held down:

Key UNICODE (hex) Character Entity Name
ctrl-Insert 108100 &ctrl-insert;
ctrl-End 108101 &ctrl-end;
ctrl-Arrow down 108102 &ctrl-arrow-down;
ctrl-Pg dn 108103 &ctrl-pgdn;
ctrl-Arrow left 108104 &ctrl-arrow-left;
ctrl-Center key (Keypad 5) 108105 &ctrl-center;
ctrl-Arrow right 108106 &ctrl-arrow-right;
ctrl-Home 108107 &ctrl-home;
ctrl-Arrow up 108108 &ctrl-arrow-up;
ctrl-Pg up 108109 &ctrl-pgup;
ctrl-Delete 10810a &ctrl-delete;
ctrl-F1 108111 &ctrl-f1;
ctrl-F2 108112 &ctrl-f2;
ctrl-F3 108113 &ctrl-f3;
ctrl-F4 108114 &ctrl-f4;
ctrl-F5 108115 &ctrl-f5;
ctrl-F6 108116 &ctrl-f6;
ctrl-F7 108117 &ctrl-f7;
ctrl-F8 108118 &ctrl-f8;
ctrl-F9 108119 &ctrl-f9;
ctrl-F10 10811a &ctrl-f10;
ctrl-F11 10811b &ctrl-f11;
ctrl-F12 10811c &ctrl-f12;

Shift Key held down

Following table applies with function and arrow keys pressed while the shift key is held down:

Key UNICODE (hex) Character Entity Name
shift-Insert 108200 &shift-insert;
shift-End 108201 &shift-end;
shift-Arrow down 108202 &shift-arrow-down;
shift-Pg dn 108203 &shift-pgdn;
shift-Arrow left 108204 &shift-arrow-left;
shift-Center key (Keypad 5) 108205 &shift-center;
shift-Arrow right 108206 &shift-arrow-right;
shift-Home 108207 &shift-home;
shift-Arrow up 108208 &shift-arrow-up;
shift-Pg up 108209 &shift-pgup;
shift-Delete 10820a &shift-delete;
shift-F1 108211 &shift-f1;
shift-F2 108212 &shift-f2;
shift-F3 108213 &shift-f3;
shift-F4 108214 &shift-f4;
shift-F5 108215 &shift-f5;
shift-F6 108216 &shift-f6;
shift-F7 108217 &shift-f7;
shift-F8 108218 &shift-f8;
shift-F9 108219 &shift-f9;
shift-F10 10821a &shift-f10;
shift-F11 10821b &shift-f11;
shift-F12 10821c &shift-f12;
shift-TAB 108220 &shift-tab;

Ctrl and Shift Key held down

Following table applies with function and arrow keys pressed while the shift key is held down:

Key UNICODE (hex) Character Entity Name
ctrl-shift-Insert 108300 &ctrl-shift-insert;
ctrl-shift-End 108301 &ctrl-shift-end;
ctrl-shift-Arrow down 108302 &ctrl-shift-arrow-down;
ctrl-shift-Pg dn 108303 &ctrl-shift-pgdn;
ctrl-shift-Arrow left 108304 &ctrl-shift-arrow-left;
ctrl-shift-Center key (Keypad 5) 108305 &ctrl-shift-center;
ctrl-shift-Arrow right 108306 &ctrl-shift-arrow-right;
ctrl-shift-Home 108307 &ctrl-shift-home;
ctrl-shift-Arrow up 108308 &ctrl-shift-arrow-up;
ctrl-shift-Pg up 108309 &ctrl-shift-pgup;
ctrl-shift-Delete 10830a &ctrl-shift-delete;
ctrl-shift-F1 108311 &ctrl-shift-f1;
ctrl-shift-F2 108312 &ctrl-shift-f2;
ctrl-shift-F3 108313 &ctrl-shift-f3;
ctrl-shift-F4 108314 &ctrl-shift-f4;
ctrl-shift-F5 108315 &ctrl-shift-f5;
ctrl-shift-F6 108316 &ctrl-shift-f6;
ctrl-shift-F7 108317 &ctrl-shift-f7;
ctrl-shift-F8 108318 &ctrl-shift-f8;
ctrl-shift-F9 108319 &ctrl-shift-f9;
ctrl-shift-F10 10831a &ctrl-shift-f10;
ctrl-shift-F11 10831b &ctrl-shift-f11;
ctrl-shift-F12 10831c &ctrl-shift-f12;

ALT Key held down

Following table applies with function and arrow keys pressed while the ALT key is held down. The following character set assumes that the left-hand alt key is used. Note that some machines and operating system interprete the right-hand alt key differenty, e.g. for special characters such as the EURO symbol (€).

Key UNICODE (hex) Character Entity Name
alt-Insert 108400 &alt-insert;
alt-End 108401 &alt-end;
alt-Arrow down 108402 &alt-arrow-down;
alt-Pg dn 108403 &alt-pgdn;
alt-Arrow left 108404 &alt-arrow-left;
alt-Center key (Keypad 5) 108405 &alt-center;
alt-Arrow right 108406 &alt-arrow-right;
alt-Home 108407 &alt-home;
alt-Arrow up 108408 &alt-arrow-up;
alt-Pg up 108409 &alt-pgup;
alt-Delete 10840a &alt-delete;
alt-F1 108411 &alt-f1;
alt-F2 108412 &alt-f2;
alt-F3 108413 &alt-f3;
alt-F4 108414 &alt-f4;
alt-F5 108415 &alt-f5;
alt-F6 108416 &alt-f6;
alt-F7 108417 &alt-f7;
alt-F8 108418 &alt-f8;
alt-F9 108419 &alt-f9;
alt-F10 10841a &alt-f10;
alt-F11 10841b &alt-f11;
alt-F12 10841c &alt-f12;

Ctrl + ALT Keys held down

Following table applies with function and arrow keys pressed while both Ctrl and ALT keys are held down. Note that some machines and operating system interprete the right-hand alt key differenty, e.g. ctrl-alt-Delete to access the task manager or to resetart the machine.

Key UNICODE (hex) Character Entity Name
ctrl-alt-Insert 108500 &ctrl-alt-insert;
ctrl-alt-End 108501 &ctrl-alt-end;
ctrl-alt-Arrow down 108502 &ctrl-alt-arrow-down;
ctrl-alt-Pg dn 108503 &ctrl-alt-pgdn;
ctrl-alt-Arrow left 108504 &ctrl-alt-arrow-left;
ctrl-alt-Center key (Keypad 5) 108505 &ctrl-alt-center;
ctrl-alt-Arrow right 108506 &ctrl-alt-arrow-right;
ctrl-alt-Home 108507 &ctrl-alt-home;
ctrl-alt-Arrow up 108508 &ctrl-alt-arrow-up;
ctrl-alt-Pg up 108509 &ctrl-alt-pgup;
ctrl-alt-Delete 10850a &ctrl-alt-delete;
ctrl-alt-F1 108511 &ctrl-alt-f1;
ctrl-alt-F2 108512 &ctrl-alt-f2;
ctrl-alt-F3 108513 &ctrl-alt-f3;
ctrl-alt-F4 108514 &ctrl-alt-f4;
ctrl-alt-F5 108515 &ctrl-alt-f5;
ctrl-alt-F6 108516 &ctrl-alt-f6;
ctrl-alt-F7 108517 &ctrl-alt-f7;
ctrl-alt-F8 108518 &ctrl-alt-f8;
ctrl-alt-F9 108519 &ctrl-alt-f9;
ctrl-alt-F10 10851a &ctrl-alt-f10;
ctrl-alt-F11 10851b &ctrl-alt-f11;
ctrl-alt-F12 10851c &ctrl-alt-f12;

ALT + Shift Keys held down

Following table applies with function and arrow keys pressed while both ALT and Shift keys are held down. Note that some machines and operating system interprete the right-hand alt key differenty.

Key UNICODE (hex) Character Entity Name
alt-shift-Insert 108600 &alt-shift-insert;
alt-shift-End 108601 &alt-shift-end;
alt-shift-Arrow down 108602 &alt-shift-arrow-down;
alt-shift-Pg dn 108603 &alt-shift-pgdn;
alt-shift-Arrow left 108604 &alt-shift-arrow-left;
alt-shift-Center key (Keypad 5) 108605 &alt-shift-center;
alt-shift-Arrow right 108606 &alt-shift-arrow-right;
alt-shift-Home 108607 &alt-shift-home;
alt-shift-Arrow up 108608 &alt-shift-arrow-up;
alt-shift-Pg up 108609 &alt-shift-pgup;
alt-shift-Delete 10860a &alt-shift-delete;
alt-shift-F1 108611 &alt-shift-f1;
alt-shift-F2 108612 &alt-shift-f2;
alt-shift-F3 108613 &alt-shift-f3;
alt-shift-F4 108614 &alt-shift-f4;
alt-shift-F5 108615 &alt-shift-f5;
alt-shift-F6 108616 &alt-shift-f6;
alt-shift-F7 108617 &alt-shift-f7;
alt-shift-F8 108618 &alt-shift-f8;
alt-shift-F9 108619 &alt-shift-f9;
alt-shift-F10 10861a &alt-shift-f10;
alt-shift-F11 10861b &alt-shift-f11;
alt-shift-F12 10861c &alt-shift-f12;

Ctrl + ALT + Shift Keys held down

Following table applies with function and arrow keys pressed while both ALT and Shift keys are held down. Note that some machines and operating system interprete the right-hand alt key differenty.

Key UNICODE (hex) Character Entity Name
ctrl-alt-shift-Insert 108700 &ctrl-alt-shift-insert;
ctrl-alt-shift-End 108701 &ctrl-alt-shift-end;
ctrl-alt-shift-Arrow down 108702 &ctrl-alt-shift-arrow-down;
ctrl-alt-shift-Pg dn 108703 &ctrl-alt-shift-pgdn;
ctrl-alt-shift-Arrow left 108704 &ctrl-alt-shift-arrow-left;
ctrl-alt-shift-Center key (Keypad 5) 108705 &ctrl-alt-shift-center;
ctrl-alt-shift-Arrow right 108706 &ctrl-alt-shift-arrow-right;
ctrl-alt-shift-Home 108707 &ctrl-alt-shift-home;
ctrl-alt-shift-Arrow up 108708 &ctrl-alt-shift-arrow-up;
ctrl-alt-shift-Pg up 108709 &ctrl-alt-shift-pgup;
ctrl-alt-shift-Delete 10870a &ctrl-alt-shift-delete;
ctrl-alt-shift-F1 108711 &ctrl-alt-shift-f1;
ctrl-alt-shift-F2 108712 &ctrl-alt-shift-f2;
ctrl-alt-shift-F3 108713 &ctrl-alt-shift-f3;
ctrl-alt-shift-F4 108714 &ctrl-alt-shift-f4;
ctrl-alt-shift-F5 108715 &ctrl-alt-shift-f5;
ctrl-alt-shift-F6 108716 &ctrl-alt-shift-f6;
ctrl-alt-shift-F7 108717 &ctrl-alt-shift-f7;
ctrl-alt-shift-F8 108718 &ctrl-alt-shift-f8;
ctrl-alt-shift-F9 108719 &ctrl-alt-shift-f9;
ctrl-alt-shift-F10 10871a &ctrl-alt-shift-f10;
ctrl-alt-shift-F11 10871b &ctrl-alt-shift-f11;
ctrl-alt-shift-F12 10871c &ctrl-alt-shift-f12;