Fix keys handle when calculator is used