Keycodes Independent From Key-"Letter"

Hello,
I have a project in which I need to use the keyboard in a very weird way. I want to fire certain actions if “any key on the right side” of the keybard or “any key on the left side” is pressed. Say, QWERT, ASDFG, YXCV is the left side and the others are the right side.

Now for that matter, the common problem of QWERTY and QWERTY comes up. I was wondering if there is a way to detect key pressing independent from its “letter” and only counting the location.

Thanks.