Don't think I ever used the Key method in Eric's first example. So it was news to me no matter long it's been around. Thanks Eric!
So that makes 4 ways to trap a key:
1. Inkey$
2. KeyHit
3. Keydown
4. Key
SmallBASIC had a way to associate a Key to a subroutine so that routine would execute when the Key was pressed, maybe ON KEY for us?
Just looked it up: Yes! On Key(1) would trap the F1 key and send you to a GoSub or Sub you setup on same command. Numbers 1-10 dedicated to Function keys then 11-14? the arrow keys, this old stuff probably came with QB4.5?
So that makes 4 ways to trap a key:
1. Inkey$
2. KeyHit
3. Keydown
4. Key
SmallBASIC had a way to associate a Key to a subroutine so that routine would execute when the Key was pressed, maybe ON KEY for us?
Just looked it up: Yes! On Key(1) would trap the F1 key and send you to a GoSub or Sub you setup on same command. Numbers 1-10 dedicated to Function keys then 11-14? the arrow keys, this old stuff probably came with QB4.5?
b = b + ...