Keypad lock

I got a program, thats runs by the keypad the user pushes. The problem is that if I hit the keyboard as totally idiot, the program remember the history of the sequence, and run the program after that.. How can I solve this? I tried setting a boolean, setting it true/false.. but that didn't help..

what is the idea here?

I need some sort of keypad lock or something..

Thanks

[401 byte] By [pistre] at [2007-11-26 12:17:11]
# 1
or disable the KeyEventDispatcher // KeyListner action... So it stops listening to key action
pistre at 2007-7-7 14:54:18 > top of Java-index,Archived Forums,Socket Programming...