This is a very simple application which monitors your keypreses and displays the Scancode and the ASCII code of the key. Useful when trying to working which keystate ID's you need to monitor.

Language: 
Dark Basic Pro
Code: 
sync off
backdrop on
do
   Key = scancode()
   text 10, 10, "ScanCode of pressed key: " + str$(Key)
   text 10, 30, "ASCII Code: " + str$(asc(inkey$()))
loop

3
Average: 3 (2 votes)