For instance, how can I detect the @
character(using keyup
, keypress
) which is produced when I use shift
+ 2
keys simultaneously?
I tried using which
to detect if both shift
and 2
were entered one after the other but how can I detect if shift
was kept pressed and then 2
was pressed?
Note: I don't just want to detect if the shift
and 2
keys are pressed one after the other, but if shift
and 2
keys were pressed at the same time to generate @
.