Ordinal Numbers lazarus / 16-Databases ---------------------------------------------------------------------- nugax · 2018-01-19 20:15 how can I view the ordinal numbers of the keys? I know ESC is 27, but how can I parse them into a loop so I can see each key? ---------------------------------------------------------------------- taazz · 2018-01-19 20:21 open the unit lcltype and locate the constant vk_unknown. you will find all the key codes there. If you insist on finding for your self then create a new application and write a keydown event for the main form. the parameter key has the code you are looking for. ---------------------------------------------------------------------- rvk · 2018-01-19 20:27 Or if you use FPC only (console) (I saw in the other topic you used Linux FP console) Notice that some keys (like the arrowkeys) are actually two keys. First #0 and second a positive number. So if you are going to read those keys you need to take the special #0 value into consideration and read the second key and act upon it. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i program project1;uses Crt;var  Key: Char;begin  repeat    Key := ReadKey;    WriteLn('You pressed ', Ord(Key));  until key = #27;end. ---------------------------------------------------------------------- nugax · 2018-01-19 21:10 Exactly what I needed! Thanks!