if self.keyboard.events[128] != 0: print('Shift key being pressed')
Nothing happens when I press the shift key, but if I change it to check for events 98, which is the B key, it does output the message when it is pressed.
Try making a for statement that loops through the events of the keyboard and find which is active, but only activate the script via a keyboard sensor for the rshift key.
e.g
import bge
keyboard = bge.logic.keyboard.events
for event in keyboard:
if event == 2 or event == 1:
print(event)
for event in self.keyboard.events:
if self.keyboard.events[event] != 0:
print(event)
it printed 129! And if it detected that, then I can setup a provisory workaround for my game. But it recognizes the two keyboard shifts as one event(129), be it right shift or left shift.