key buffer works