key-fn fix