How can I get the current keyboard input from within my module which has no form or UI? I just want to be able to detect the Shift status with a timer event.

Any help appreciated.