key buffer usage