I've just tested this - that behaviour is already implemented. I think the problem is that keys are being pressed as the device comes out of the pocket.