The following code should check how many letters are pressed and display their scancodes, but it doesnt work with all letters, e.g. if T, Z and U are pressed it displays only 2 letters ;
same goes for a lot of other combinations.
ley as integer []
do
Keys_Down (ley) // Checks whether a letter is currently down and stores all scancode numbers and the amount of letters down in ley[0]
print (ley[0]) : for x = 1 to ley[0] : print(ley[x]) : next x // displays amount of letter and scancode numbers - here is where the mistake occurs
if GetPointerPressed() = 1 then end : Sync()
loop
Function Keys_Down (keys_down ref as integer [])
keys_down.length = 0
for x = 65 to 90 : If GetRawKeyState(x) = 1 then keys_down.insert(x) : next x
keys_down[0]=keys_down.length
Endfunction