I capture the EStdKeyYes key on a Nokia 6600 phone and I have some code which starts some operation in HandleKeyEventL

This works only when my application is in the foreground. If I have some other application running that has the focus, etc. this doesn't seem to work.

Is it supposed to be like this? If yes, then what is the use of the API function CaptureKey?