What might work better, instead of unlocking the keys, is to have the proximity sensor turn off the screen when it is ringing. That way, the screen is off when it is still in your in pocket and once its out, it will automatically turn on for you to accept the call.