Queued-up keypresses

Can anyone advise on the best way to prevent keypresses from being executed whilst switching between canvases, I am finding that when processing occurs between when the user switches to another canvas that if the double keypress a softkey for example by acciddent that keypress is carried out onto the the next canvas once it has been displayed - as if it has been queued up. Obviously this is not valid on the switched to canvas and causes an error.

I am finding this mainly on the 6600 which is dreadfully slow, on other phones i.e. n-gage, 7650 I do not find this problem as the VM seems to process the switching far quicker and doesn’t cause a problem.

Is it best to use a thread, timer or another method (for instance can all keypresses be ignored or cleared by a line of code?) to avoid this as it is causing major errors in my program and is very annoying indeed! If you could share your experiences with these types of issues it would be of great assistance,

Cheers,

Goika

Don’t use more than 1 Canvas.