Fix keys handle when calculator is used

:shaved_ice: