of course the Inkey$ and INPUT routines can only detect valid keys. But, as I wrote, scanning the keyboard directly by using IN/OUT, a m/c program can detect multiple keys being pressed. E. g. there are games, which accept all keys connected to a keyboard column as one key and another column as second key.
And I also once wrote a BASIC(!) program, which could detect multiple keys (AFAIK by comparing system variable LAST_K).
Try the attached game "HARRISBURG" (to control an ATOMKRAFTWERK

This game cannot be played by joystick, but by using the keyboard ...
Siggi