I am just looking for some direction of what type of keywords' I should be using when trying to find a solution to my problem as I am not finding any results the way I am typing it.
Basically, I want my program to monitor the last 5 keyboard keys pressed constantly whilst I'm running the jframes etc.

As it remembers the last 5, I want it to scan them until they match the pre-set passcode if you will. should the 5 characters match I want a backdoor/hidden developers jframe to open. I am saying 5 characters to keep it simple. Once I understand I will probably increase to make it more secure. And as this is going to be a local program I am just going to hardcode the pre-set password into the program. Any one using the software will not be 'clued up' on java enough to exploit this.

Any help would be appreciated,

Thanks