Is it possible to detect key press in EA?

 
I want to bring up a dialog when there is a key press with EA is running. Is it possible to do that? Any help will appreciate.
Reason: