I am developing a Push-To-Talk kind of application, I need to do an operation when the key is pressed and on releasing the key i want to terminate the operation that is being done.

For example in Nokia 7650 : on pressing the menu key for a longer time it displays all the opened applications, so that the user can toggle b/w those applications.

Is there a provision to configure the left and right softkeys to capture these events, how do i capture the Keypressed and Keyreleased

Could anyone please tell me how to go about it ASAP.