keyState A module to easily get the current state of a key To find the the value of a key code in the keys array please look at input-event-codes.h This was made just to toy with creating a kernel module, don't actually use this in your code.